16#include "Reflection.h"
43struct GamePadActionEnum : util::Reflection<GamePadActionEnum, GamePadAction> {
45 static constexpr long minVal = 0;
47 static bool isValid(
auto value) {
return value >= minVal && value <= maxVal; }
49 static const char *prefix() {
return nullptr; }
50 static const char *key(
long value)
80 isize autofireBullets;
VirtualC64 project namespace.
Definition CmdQueue.cpp:16
GAME_PAD_ACTION
Gamepad / Joystick event.
Definition JoystickTypes.h:26
@ PULL_DOWN
Pull the joystick down.
Definition JoystickTypes.h:28
@ RELEASE_LEFT
Release the left mouse button.
Definition JoystickTypes.h:38
@ PRESS_FIRE
Press the joystick button.
Definition JoystickTypes.h:31
@ RELEASE_FIRE
Release the joystick button.
Definition JoystickTypes.h:37
@ PULL_UP
Pull the joystick up.
Definition JoystickTypes.h:27
@ PULL_RIGHT
Pull the joystick right.
Definition JoystickTypes.h:30
@ RELEASE_RIGHT
Release the right mouse button.
Definition JoystickTypes.h:39
@ PRESS_RIGHT
Press the right mouse button.
Definition JoystickTypes.h:33
@ PRESS_LEFT
Press the left mouse button.
Definition JoystickTypes.h:32
@ RELEASE_Y
Move back to neutral vertically.
Definition JoystickTypes.h:35
@ PULL_LEFT
Pull the joystick left.
Definition JoystickTypes.h:29
@ RELEASE_X
Move back to neutral horizontally.
Definition JoystickTypes.h:34
@ RELEASE_XY
Move back to neutral.
Definition JoystickTypes.h:36