diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-03-30 08:36:16 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-03-31 06:50:33 +0200 |
| commit | ce8b1c43caf9e97fe0e93a51d6ca6b82460305d7 (patch) | |
| tree | 462ed058f56f76bff22ed55da34a36dc348a04dc /src/player/inc | |
| parent | 1950fe7b0679c6b6486cc7b25bef813db2b1bb4e (diff) | |
| download | jancity-ce8b1c43caf9e97fe0e93a51d6ca6b82460305d7.tar.gz | |
Implement touch controls
Diffstat (limited to 'src/player/inc')
| -rw-r--r-- | src/player/inc/human_player.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/player/inc/human_player.h b/src/player/inc/human_player.h index b2a07ee..08f47d9 100644 --- a/src/player/inc/human_player.h +++ b/src/player/inc/human_player.h @@ -22,6 +22,7 @@ struct human_player_cfg enum human_player_periph { HUMAN_PLAYER_PERIPH_PAD, + HUMAN_PLAYER_PERIPH_TOUCH, HUMAN_PLAYER_PERIPH_KEYBOARD_MOUSE } sel_periph; @@ -39,10 +40,12 @@ struct human_player { struct pad pad; - struct + struct human_player_kbm { struct mouse mouse; struct keyboard keyboard; + bool long_press, pan; + unsigned int lp_t; } kbm; } periph; |
