AODQ / pulchritude-engine

lingua franca game engine
MIT License
0 stars 0 forks source link

PuleControls - Control Engine Library #23

Open AODQ opened 2 years ago

AODQ commented 2 years ago

Description

Initially support only keyboard controls, then gamepads in the future. This will build on top of Platform to provide controls that are easily configurable.


Proposed new ABI

typedef enum {
  PuleControlStatus_off = 0x0,
  PuleControlStatus_previousFrame = 0x1,
  PuleControlStatus_thisFrame = 0x2,
} PuleControlStatus;
PuleControlStatus puleControlKey(char const * const command);
void puleControlKeySetCommand(PuleInputKey const inputKey, PuleInputKeyModifier const modifier, char const * const command);
void puleControlMouseSetCommand(PuleInputMouse const inputButton, PuleInputKeyModifier const modifier, char const * const command);