#include <PhxLogicalInputEngine.h>
Inheritance diagram for Phx::LogicalInputEngine::DigitalButtonDriver:

Public Member Functions | |
| virtual void | buttons (const std::vector< ButtonSpecState > &buttons)=0 |
| Sets the sequence of buttons that must be pressed in order for the logical button to be pressed. | |
| virtual std::vector< ButtonSpecState > | buttons (void) const =0 |
| Returns the buttons that must be pressed in order for the logical button to be pressed. | |
Specifically: The logical button supported by this driver is considered PRESSED if the last button in the sequence transitions into the "trigger state" (as specified by the ButtonSpecState in buttons()) and all of the buttons preceding it in the sequence are currently in their respective trigger states. The logical button will remain PRESSED until the last button in the sequence exits its trigger state (regardless of the state of the other keys).
If the buttons() collection is empty, the logical button is always in the RELEASED state.
|
|
Returns the buttons that must be pressed in order for the logical button to be pressed.
|
|
|
Sets the sequence of buttons that must be pressed in order for the logical button to be pressed. The logical button is triggered when the last button in the buttons() sequence is pressed while all of the previous buttons are currently held. It is relased when the last button is released.
|
1.4.2