ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

Committer:
el17ajf
Date:
Fri Mar 15 20:30:01 2019 +0000
Revision:
9:3a7776a29a11
Parent:
5:3efbdcb3efaf
Child:
12:beb0d7632531
added more graphics methods

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el17ajf 3:a1b058ff66c2 1 class Input {
el17ajf 3:a1b058ff66c2 2 public:
el17ajf 9:3a7776a29a11 3 static const int NUMBER_OF_BUTTONS = 4;
el17ajf 9:3a7776a29a11 4 enum Button {LEFT, RIGHT, UP, DOWN};
el17ajf 9:3a7776a29a11 5 enum State {RELEASED, RELEASED_FRAME, HIT_FRAME, HELD};
el17ajf 9:3a7776a29a11 6 static void init();
el17ajf 9:3a7776a29a11 7 static void deinit();
el17ajf 5:3efbdcb3efaf 8 static void update();
el17ajf 9:3a7776a29a11 9 static bool buttonHit(Button button);
el17ajf 9:3a7776a29a11 10 static bool buttonHeld(Button button);
el17ajf 9:3a7776a29a11 11 private:
el17ajf 9:3a7776a29a11 12 static State states[NUMBER_OF_BUTTONS];
el17ajf 3:a1b058ff66c2 13 };