[input] Implement imt creation, binding, etc

Much testing is needed, but the bulk of imt management is implemented.
Axis bindings are not properly implemented yet, though.
This commit is contained in:
Bill Currie 2021-11-08 16:54:52 +09:00
parent fd5abb4c61
commit 925ca8081c
5 changed files with 235 additions and 4 deletions

View file

@ -85,8 +85,11 @@ void IMT_SetContextCbuf (int ctx, struct cbuf_s *cbuf);
imt_t *IMT_FindIMT (const char *name);
int IMT_CreateIMT (int context, const char *imt_name,
const char *chain_imt_name);
void IMT_BindAxis (imt_t *imt, int axis, const char *binding);
void IMT_BindButton (imt_t *imt, int button, const char *binding);
qboolean IMT_ProcessAxis (int axis, int value);
qboolean IMT_ProcessButton (int button, int state);
void IMT_Init (void);
#endif