mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-21 17:55:13 -05:00
Some checks are pending
build / build (push) Waiting to run
Co-authored-by: narf0708@gmail.com <narf0708@gmail.com>
23 lines
930 B
C
23 lines
930 B
C
#ifndef POKEPLATINUM_TOUCH_SCREEN_HIT_TABLE_ACTION_H
|
|
#define POKEPLATINUM_TOUCH_SCREEN_HIT_TABLE_ACTION_H
|
|
|
|
#include "touch_screen.h"
|
|
|
|
typedef void (*TouchScreenHitTableAction)(u32, enum TouchScreenButtonState, void *);
|
|
|
|
typedef struct TouchScreenHitTableActionStateInternal TouchScreenHitTableActionStateInternal;
|
|
|
|
typedef struct TouchScreenActions {
|
|
const TouchScreenHitTable *hitTables;
|
|
u32 hitTablesLength;
|
|
TouchScreenHitTableAction action;
|
|
void *hitTableContext;
|
|
TouchScreenHitTableActionStateInternal *actionStates;
|
|
} TouchScreenActions;
|
|
|
|
TouchScreenActions *TouchScreenActions_RegisterHandler(const TouchScreenHitTable *hitTable, u32 hitTableLength, TouchScreenHitTableAction action, void *context, u32 heapID);
|
|
void TouchScreenActions_Free(TouchScreenActions *buttonAction);
|
|
void TouchScreenActions_HandleAction(TouchScreenActions *buttonAction);
|
|
|
|
#endif // POKEPLATINUM_TOUCH_SCREEN_HIT_TABLE_ACTION_H
|