You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
510 B
25 lines
510 B
#ifndef _MODULE_INPUT_h
|
|
#define _MODULE_INPUT_h
|
|
|
|
#define MODULE_INPUT_BUTTONS 4
|
|
|
|
struct InputButtonState;
|
|
|
|
/// <summary>
|
|
/// Module responsible for monitoring button presses and converting them into events
|
|
/// </summary>
|
|
class Module_Input : public Task, public IRunnable
|
|
{
|
|
/// <summary>
|
|
/// Track the state of the buttons so we can do debouncing/etc
|
|
/// </summary>
|
|
InputButtonState* m_button[MODULE_INPUT_BUTTONS];
|
|
|
|
public:
|
|
Module_Input();
|
|
void start();
|
|
void tick();
|
|
};
|
|
|
|
|
|
#endif
|