terom@415: #ifndef INPUT_HH terom@415: #define INPUT_HH terom@415: terom@415: /** terom@415: * Core game input events, used to control LocalPlayer terom@415: */ terom@415: terom@415: #include "Types.hh" terom@415: terom@415: /** terom@415: * The bits used in the PlayerInput bitmask, each represents a separate action handled by LocalPlayer::handleInput. terom@415: * terom@415: * @see LocalPlayer::handleInput terom@415: */ terom@415: enum PlayerInputBit { terom@415: INPUT_NONE = 0x0000, terom@415: terom@415: INPUT_AIM_UP = 0x0001, terom@415: INPUT_AIM_DOWN = 0x0002, terom@415: terom@415: INPUT_MOVE_LEFT = 0x0004, terom@415: INPUT_MOVE_RIGHT = 0x0008, terom@415: terom@415: INPUT_JUMP = 0x0010, terom@415: INPUT_DIG = 0x0020, terom@415: INPUT_SHOOT = 0x0040, terom@415: INPUT_CHANGE_NEXT = 0x0080, terom@415: INPUT_CHANGE_PREV = 0x0100, terom@415: INPUT_ROPE = 0x0200, terom@415: INPUT_UNROPE = 0x0400, terom@415: INPUT_ROPE_UP = 0x0800, terom@415: INPUT_ROPE_DOWN = 0x1000, terom@415: terom@415: INPUT_SUICIDE = 0x2000, terom@415: }; terom@415: terom@415: /** terom@415: * Bitmask of PlayerInputBits terom@415: * terom@415: * @see PlayerInputBit terom@415: */ terom@415: typedef uint16_t PlayerInput; terom@415: terom@415: #endif