Add ability to push controls to a control map without having to manually track controlmap index IDs
This commit is contained in:
@@ -21,6 +21,7 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
actor *target;
|
||||
int nextMap;
|
||||
SDL3GControl controls[MAX_CONTROLS];
|
||||
SDL_KeyboardID kbid;
|
||||
SDL_JoystickID jsid;
|
||||
@@ -37,5 +38,7 @@ akerr_ErrorContext AKERR_NOIGNORE *controller_handle_button_up(void *appstate, S
|
||||
akerr_ErrorContext AKERR_NOIGNORE *controller_handle_added(void *appstate, SDL_Event *event);
|
||||
akerr_ErrorContext AKERR_NOIGNORE *controller_handle_removed(void *appstate, SDL_Event *event);
|
||||
|
||||
akerr_ErrorContext AKERR_NOIGNORE *SDL3G_controller_pushmap(int controlmapid, SDL3GControl *control);
|
||||
|
||||
akerr_ErrorContext AKERR_NOIGNORE *SDL3G_controller_default(int controlmapid, char *actorname, int kbid, int jsid);
|
||||
#endif // _CONTROLLER_H_
|
||||
|
||||
Reference in New Issue
Block a user