Method SDL.Joystick()->get_hat()
- Method
get_hat
intget_hat(inthat)- Description
Returns the current state of the given hat.
This is represented as an OR'd combination of one or more of the following constants:
SDL.HAT_CENTEREDSDL.HAT_UPSDL.HAT_RIGHTSDL.HAT_DOWNSDL.HAT_LEFTSDL.HAT_RIGHTUPSDL.HAT_RIGHTDOWNSDL.HAT_LEFTUPSDL.HAT_LEFTDOWN
- Parameter
hat The hat index.
- Returns
The current state of the given hat.
- See also