Package be.yildizgames.module.controller
Interface ControllerCurrentState
-
public interface ControllerCurrentStateProvide the controller current state, this object is internally mutable, so there is no need of a new instance to have the latest state.- Author:
- Grégory Van den Borre
-
-
Method Summary
Modifier and Type Method Description booleanisButton1Pressed()Check button 1.booleanisButton2Pressed()Check button 2.booleanisButton3Pressed()Check button 3.booleanisButton4Pressed()Check button 4.booleanisButtonSelectPressed()Check button select.booleanisButtonStartPressed()Check button start.booleanisPadDownPressed()Check pad down.booleanisPadLeftPressed()Check pad left.booleanisPadRightPressed()Check pad right.booleanisPadUpPressed()Check pad up.
-
-
-
Method Detail
-
isButton1Pressed
boolean isButton1Pressed()
Check button 1.- Returns:
- True if the button 1 is currently pressed.
-
isButton2Pressed
boolean isButton2Pressed()
Check button 2.- Returns:
- True if the button 2 is currently pressed.
-
isButton3Pressed
boolean isButton3Pressed()
Check button 3.- Returns:
- True if the button 3 is currently pressed.
-
isButton4Pressed
boolean isButton4Pressed()
Check button 4.- Returns:
- True if the button 4 is currently pressed.
-
isButtonStartPressed
boolean isButtonStartPressed()
Check button start.- Returns:
- True if the button start is currently pressed.
-
isButtonSelectPressed
boolean isButtonSelectPressed()
Check button select.- Returns:
- True if the button select is currently pressed.
-
isPadUpPressed
boolean isPadUpPressed()
Check pad up.- Returns:
- True if the pas up is currently pressed.
-
isPadDownPressed
boolean isPadDownPressed()
Check pad down.- Returns:
- True if the pas down is currently pressed.
-
isPadLeftPressed
boolean isPadLeftPressed()
Check pad left.- Returns:
- True if the pas left is currently pressed.
-
isPadRightPressed
boolean isPadRightPressed()
Check pad right.- Returns:
- True if the pas right is currently pressed.
-
-