Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17ajf by
Input/Input.h@18:24ce897024d0, 2019-04-03 (annotated)
- Committer:
- el17ajf
- Date:
- Wed Apr 03 14:31:49 2019 +0000
- Revision:
- 18:24ce897024d0
- Parent:
- 13:59e17cab320a
- Child:
- 22:0a474f074553
Added adaptable grid sizes
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el17ajf | 18:24ce897024d0 | 1 | #ifndef INPUT_H |
| el17ajf | 18:24ce897024d0 | 2 | #define INPUT_H |
| el17ajf | 18:24ce897024d0 | 3 | |
| el17ajf | 12:beb0d7632531 | 4 | #include "Gamepad.h" |
| el17ajf | 12:beb0d7632531 | 5 | |
| el17ajf | 13:59e17cab320a | 6 | namespace Input { |
| el17ajf | 9:3a7776a29a11 | 7 | enum Button {LEFT, RIGHT, UP, DOWN}; |
| el17ajf | 13:59e17cab320a | 8 | |
| el17ajf | 13:59e17cab320a | 9 | void init(); |
| el17ajf | 13:59e17cab320a | 10 | void deinit(); |
| el17ajf | 13:59e17cab320a | 11 | void update(); |
| el17ajf | 13:59e17cab320a | 12 | bool buttonHit(Button button); |
| el17ajf | 13:59e17cab320a | 13 | bool buttonHeld(Button button); |
| el17ajf | 13:59e17cab320a | 14 | }; |
| el17ajf | 18:24ce897024d0 | 15 | #endif |
