diff options
| author | Matthew Hoops | 2011-09-21 10:01:27 -0400 | 
|---|---|---|
| committer | Matthew Hoops | 2011-09-21 10:01:27 -0400 | 
| commit | e3080fb251386687f592aae3f2777cf29a677e68 (patch) | |
| tree | 7a306324ed746131608b2547353c2a1ad82ad7d9 | |
| parent | e310da1aa80123c1d558388fc345253daed7f63d (diff) | |
| download | scummvm-rg350-e3080fb251386687f592aae3f2777cf29a677e68.tar.gz scummvm-rg350-e3080fb251386687f592aae3f2777cf29a677e68.tar.bz2 scummvm-rg350-e3080fb251386687f592aae3f2777cf29a677e68.zip | |
PEGASUS: Add the JMPPPInput utility class
| -rwxr-xr-x | engines/pegasus/input.h | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/engines/pegasus/input.h b/engines/pegasus/input.h index 4da0418a53..06724346e5 100755 --- a/engines/pegasus/input.h +++ b/engines/pegasus/input.h @@ -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 | 
