ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

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?

UserRevisionLine numberNew 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 };