ELEC2645 (2018/19) / Mbed 2 deprecated el17ajf

Dependencies:   mbed

Fork of el17ajf by Angus Findlay

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?

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