mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
PEGASUS: Add the JMPPPInput utility class
This commit is contained in:
parent
e310da1aa8
commit
e3080fb251
@ -449,6 +449,29 @@ protected:
|
||||
InputHandler *_savedHandler;
|
||||
};
|
||||
|
||||
class JMPPPInput {
|
||||
public:
|
||||
static bool isMenuButtonPressInput(const Input &input) { return input.twoButtonDown(); }
|
||||
|
||||
static tInputBits getClickInputFilter() { return kFilterTwoButton; }
|
||||
static bool isClickInput(const Input &input) { return input.twoButtonDown(); }
|
||||
static bool isDraggingInput(const Input &input) { return input.twoButtonAnyDown(); }
|
||||
static bool isPressingInput(const Input &input) { return input.twoButtonAnyDown(); }
|
||||
|
||||
static bool isRaiseInventoryInput(const Input &input) { return input.leftFireButtonDown(); }
|
||||
static bool isRaiseBiochipsInput(const Input &input) { return input.rightFireButtonDown(); }
|
||||
static tInputBits getItemPanelsInputFilter() { return kFilterLeftFireButton | kFilterRightFireButton; }
|
||||
|
||||
static bool isToggleAIMiddleInput(const Input &input) { return input.threeButtonDown(); }
|
||||
|
||||
static bool isToggleInfoInput(const Input &input) { return input.fourButtonDown(); }
|
||||
|
||||
// Hmmmmm....
|
||||
static bool isEasterEggModifierInput(const Input &input) { return input.mod2ButtonAnyDown(); }
|
||||
|
||||
static bool isTogglePauseInput(const Input &input) { return input.mod3ButtonDown(); }
|
||||
};
|
||||
|
||||
} // End of namespace Pegasus
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user