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 | 45337576dff70a3b5991b79d0fe13420110b3594 (patch) | |
| tree | d3f18d3d92a9da8c7d2dd9e596b44eb579cf368c /src/player/inc | |
| parent | 82c61e3d1d97c6e829bfbe0e35539abfe75d1380 (diff) | |
| download | rts-45337576dff70a3b5991b79d0fe13420110b3594.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; |
