2021-12-21 08:45:48 +00:00
|
|
|
#include "input.h"
|
|
|
|
|
2021-12-21 15:27:16 +00:00
|
|
|
void IN_LoadConfig (struct plitem_s *config) = #0;
|
2021-12-21 08:45:48 +00:00
|
|
|
in_button_t *IN_CreateButton (string name, string description) = #0;
|
|
|
|
in_axis_t *IN_CreateAxis (string name, string description) = #0;
|
2024-01-31 16:40:46 +00:00
|
|
|
void IN_SendConnectedDevices (void) = #0;
|
2021-12-21 08:45:48 +00:00
|
|
|
int IN_FindDeviceId (string _id) = #0;
|
|
|
|
string IN_GetDeviceName (int devid) = #0;
|
|
|
|
string IN_GetDeviceId (int devid) = #0;
|
|
|
|
//IN_AxisInfo () = #0;
|
|
|
|
//IN_ButtonInfo () = #0;
|
|
|
|
string IN_GetAxisName (int devid, int axis) = #0;
|
2022-04-25 22:19:35 +00:00
|
|
|
string IN_GetButtonName (int devid, int button) = #0;
|
2021-12-21 08:45:48 +00:00
|
|
|
int IN_GetAxisNumber (int devid, string axis) = #0;
|
2022-04-25 22:19:35 +00:00
|
|
|
int IN_GetButtonNumber (int devid, string button) = #0;
|
2021-12-21 08:45:48 +00:00
|
|
|
void IN_ProcessEvents (void) = #0;
|
2024-02-01 02:16:36 +00:00
|
|
|
float IN_UpdateAxis (in_axis_t *axis) = #0;
|
2021-12-21 08:45:48 +00:00
|
|
|
void IN_ClearStates (void) = #0;
|
|
|
|
int IN_GetAxisInfo (int devid, int axis, in_axisinfo_t *info) = #0;
|
|
|
|
int IN_GetButtonInfo (int devid, int button, in_buttoninfo_t *info) = #0;
|
|
|
|
@overload
|
|
|
|
void IN_ButtonAddListener (in_button_t *button, button_listener_t listener,
|
|
|
|
void *data) = #0;
|
|
|
|
@overload
|
|
|
|
void IN_ButtonRemoveListener (in_button_t *button, button_listener_t listener,
|
|
|
|
void *data) = #0;
|
|
|
|
@overload
|
|
|
|
void IN_AxisAddListener (in_axis_t *axis, axis_listener_t listener,
|
|
|
|
void *data) = #0;
|
|
|
|
@overload
|
|
|
|
void IN_AxisRemoveListener (in_axis_t *axis, axis_listener_t listener,
|
|
|
|
void *data) = #0;
|
|
|
|
@overload
|
|
|
|
void IN_ButtonAddListener (in_button_t *button, IMP listener, id obj) = #0;
|
|
|
|
@overload
|
|
|
|
void IN_ButtonRemoveListener (in_button_t *button, IMP listener, id obj) = #0;
|
|
|
|
@overload
|
|
|
|
void IN_AxisAddListener (in_axis_t *axis, IMP listener, id obj) = #0;
|
|
|
|
@overload
|
|
|
|
void IN_AxisRemoveListener (in_axis_t *axis, IMP listener, id obj) = #0;
|
2021-12-22 06:03:26 +00:00
|
|
|
|
|
|
|
int IMT_CreateContext (string name) = #0;
|
|
|
|
int IMT_GetContext (void) = #0;
|
|
|
|
void IMT_SetContext (int ctx) = #0;
|
2023-06-14 11:25:50 +00:00
|
|
|
void IMT_SetContextCbuf (int ctx, @handle cbuf_h cbuf) = #0;
|
2024-01-31 16:40:46 +00:00
|
|
|
|
2024-02-01 02:16:36 +00:00
|
|
|
/*bool*/int IN_Binding_HandleEvent (/*const*/ struct IE_event_s *ie_event) = #0;
|
|
|
|
|
2024-01-31 16:40:46 +00:00
|
|
|
#define IE_EVENT(event) #event,
|
|
|
|
string ie_event_names[] = {
|
|
|
|
#include "QF/input/event_names.h"
|
|
|
|
};
|