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@13:59e17cab320a, 2019-03-18 (annotated)
- Committer:
- el17ajf
- Date:
- Mon Mar 18 18:09:57 2019 +0000
- Revision:
- 13:59e17cab320a
- Parent:
- 12:beb0d7632531
- Child:
- 18:24ce897024d0
got tetrominos dropping and moving!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17ajf | 12:beb0d7632531 | 1 | #include "Gamepad.h" |
el17ajf | 12:beb0d7632531 | 2 | |
el17ajf | 13:59e17cab320a | 3 | namespace Input { |
el17ajf | 9:3a7776a29a11 | 4 | enum Button {LEFT, RIGHT, UP, DOWN}; |
el17ajf | 13:59e17cab320a | 5 | |
el17ajf | 13:59e17cab320a | 6 | void init(); |
el17ajf | 13:59e17cab320a | 7 | void deinit(); |
el17ajf | 13:59e17cab320a | 8 | void update(); |
el17ajf | 13:59e17cab320a | 9 | bool buttonHit(Button button); |
el17ajf | 13:59e17cab320a | 10 | bool buttonHeld(Button button); |
el17ajf | 13:59e17cab320a | 11 | }; |