--- generator/hdr/ui-console.h 2020/03/04 04:46:28 1.1.1.2 +++ generator/hdr/ui-console.h 2020/03/04 04:46:47 1.1.1.3 @@ -2,6 +2,11 @@ typedef enum { DEINTERLACE_BOB, DEINTERLACE_WEAVE, DEINTERLACE_WEAVEFILTER } t_interlace; +typedef struct { + int joystick; /* -1 for keyboard, joystick no otherwise */ + int keyboard; /* 0 for whole keyboard, 1/2 for left/right */ +} t_binding; + extern uint32 ui_fkeys; /* bitmap representing function keys */ extern uint8 ui_vdpsimple; /* 0=raster, 1=cell based plotter */ @@ -10,5 +15,8 @@ extern uint8 ui_fullscreen; /* doe extern uint8 ui_info; /* does the user want info onscreen or not */ extern uint8 ui_vsync; /* does the user want us to wait for vsync */ extern t_interlace ui_interlace; /* user de-interlace preference */ +extern t_binding ui_bindings[2]; /* keyboard/joystick bindings for players */ + int ui_topbit(unsigned long int bits); void ui_setupscreen(void); +