nCine::HatState struct

Bit flags describing the direction of a joystick hat (D-pad).

Diagonal directions combine the orthogonal flags.

Public types

enum (anonymous) { Centered = 0, Up = 1, Right = 2, Down = 4, Left = 8, RightUp = Right | Up, RightDown = Right | Down, LeftUp = Left | Up, LeftDown = Left | Down }