aboutsummaryrefslogtreecommitdiff
path: root/src/camera/inc/camera.h
Commit message (Collapse)AuthorAgeFilesLines
* Big rushed updateXavier Del Campo Romero2024-01-281-1/+2
|
* Replace "unsigned int" with "unsigned"Xavier Del Campo Romero2024-01-271-2/+2
|
* Remap calls to pad/mouse/keyboard to inputXavier Del Campo Romero2022-09-201-3/+2
|
* camera: implement fixed cursor movementXavier Del Campo Romero2022-06-241-0/+11
| | | | | | | | | | | On platforms with PERIPHERAL_TYPE_PAD, navigating through menus and options can be cumbersome if moving the cursor freely around the screen. Therefore, this commit instead defines a list of (X, Y) coordinates that the cursor can jump to. The implementation also attempts to guess which direction the cursor should jump to for the previous/next point, and hence determine which button should be pressed by the user.
* camera: remove dependency against terrainXavier Del Campo Romero2022-06-121-0/+5
| | | | | This will allow using camera for purposes other than showing the game map.
* Split peripheral-related logic into its own componentXavier Del Campo Romero2022-06-121-3/+3
| | | | | | | | | | | 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).
* Implement touch controlsXavier Del Campo Romero2022-03-311-0/+1
|
* Add support for keyboard and mouseXavier Del Campo Romero2022-03-301-1/+3
|
* Refresh camera and terrain rendering on screen resizeXavier Del Campo Romero2022-03-301-0/+4
|
* Add project source codeXavier Del Campo Romero2022-03-301-0/+42