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@22:0a474f074553, 2019-04-04 (annotated)
- Committer:
- el17ajf
- Date:
- Thu Apr 04 07:08:39 2019 +0000
- Revision:
- 22:0a474f074553
- Parent:
- 18:24ce897024d0
- Child:
- 25:bf47fe41883a
Added pause menu
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 | 22:0a474f074553 | 7 | enum Button {LEFT, RIGHT, UP, DOWN, START}; |
| 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 | }; |
| el17ajf | 18:24ce897024d0 | 14 | #endif |
