aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral
Commit message (Collapse)AuthorAgeFilesLines
* Remap calls to pad/mouse/keyboard to inputXavier Del Campo Romero2022-09-201-0/+1
|
* peripheral.c: initialize common members onlyXavier Del Campo Romero2022-06-261-1/+1
| | | | Other members will be initialized according to peripheral configuration.
* peripheral: provide common actionsXavier Del Campo Romero2022-06-243-1/+27
| | | | | | Whereas some actions are context-specific (e.g.: selecting a player), some are context-independent and can be executed for all screens (e.g.: exiting the game).
* Split peripheral-related logic into its own componentXavier Del Campo Romero2022-06-123-0/+108
This has several advantages: - `camera` no longer needs to define public functions for each peripheral type. - Peripheral-related is now no longer tighly coupled to human_player, so peripheral logic can be reused elsewhere e.g.: on menus. - Makes camera_update_touch consistent compared to equivalent functions, since now `pan` has now been moved to `camera` (as it should be).