| 1420 | using HandleLeftStickOrDPadFn = void (*)(devilution::AxisDirection); |
| 1421 | |
| 1422 | HandleLeftStickOrDPadFn GetLeftStickOrDPadGameUIHandler() |
| 1423 | { |
| 1424 | if (IsStashOpen) { |
| 1425 | return &StashMove; |
| 1426 | } |
| 1427 | if (invflag) { |
| 1428 | return &CheckInventoryMove; |
| 1429 | } |
| 1430 | if (chrflag && MyPlayer->_pStatPts > 0) { |
| 1431 | return &AttrIncBtnSnap; |
| 1432 | } |
| 1433 | if (spselflag) { |
| 1434 | return &HotSpellMove; |
| 1435 | } |
| 1436 | if (sbookflag) { |
| 1437 | return &SpellBookMove; |
| 1438 | } |
| 1439 | if (QuestLogIsOpen) { |
| 1440 | return &QuestLogMove; |
| 1441 | } |
| 1442 | if (stextflag != TalkID::None) { |
| 1443 | return &StoreMove; |
| 1444 | } |
| 1445 | return nullptr; |
| 1446 | } |
| 1447 | |
| 1448 | void ProcessLeftStickOrDPadGameUI() |
| 1449 | { |
no outgoing calls
no test coverage detected