36# define __JO_INPUT_H__
38# define JO_INPUT_MAX_DEVICE (12)
41# define JO_INPUT_PORT1_FIRST_DEVICE (0)
42# define JO_INPUT_PORT2_FIRST_DEVICE (6)
45# define __JO_KEY_PRESSED(PORT, KEY) ((jo_inputs[PORT].data & KEY) == 0)
250 return ((
jo_inputs[port].push & key) == 0);
#define __JO_INDEX_IS_WRONG(INDEX, COUNT, WHAT)
Check an index given to a function of the engine (Internal usage, JO_DEBUG).
Definition core.h:55
void * data
Definition entity.h:19
struct __jo_may_alias jo_peripheral_pointer
Pointing peripheral data (mouse).
#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:211
#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:326
@ DOWN_LEFT
Definition types.h:334
@ DOWN_RIGHT
Definition types.h:335
@ UP_RIGHT
Definition types.h:333
@ DOWN
Definition types.h:331
@ UP_LEFT
Definition types.h:332
@ UP
Definition types.h:330
@ NONE
Definition types.h:327
@ LEFT
Definition types.h:328
@ RIGHT
Definition types.h:329