37# define __JO_INPUT_H__
39# define JO_INPUT_MAX_DEVICE (12)
42# define JO_INPUT_PORT1_FIRST_DEVICE (0)
43# define JO_INPUT_PORT2_FIRST_DEVICE (6)
46# define __JO_KEY_PRESSED(PORT, KEY) ((jo_inputs[PORT].data & KEY) == 0)
191 return ((
unsigned short)
jo_inputs[port].data);
201 return ((
jo_inputs[port].push & key) == 0);
#define JO_PERIPHERAL_ID_NOT_CONNECTED
Peripheral ID: nothing connected.
Definition smpc.h:166
#define JO_PERIPHERAL_ID_NIGHTS_PAD
Peripheral ID: 3D pad (NiGHTS pad).
Definition smpc.h:174
Digital peripheral data (gamepad).
Definition smpc.h:197
Pointing peripheral data (mouse).
Definition smpc.h:227
#define __jo_force_inline
force inline attribute (and prevent Doxygen prototype parsing bug)
Definition types.h:39
jo_8_directions
8 directions definition
Definition types.h:308
@ DOWN_LEFT
Definition types.h:316
@ DOWN_RIGHT
Definition types.h:317
@ UP_RIGHT
Definition types.h:315
@ DOWN
Definition types.h:313
@ UP_LEFT
Definition types.h:314
@ UP
Definition types.h:312
@ NONE
Definition types.h:309
@ LEFT
Definition types.h:310
@ RIGHT
Definition types.h:311