24 lines
473 B
C++
24 lines
473 B
C++
#ifndef DRUMZ_USER_INPUT_MANAGER_HPP
|
|
#define DRUMZ_USER_INPUT_MANAGER_HPP
|
|
|
|
#include <Arduino.h>
|
|
#include <vector>
|
|
|
|
namespace UserInputManager
|
|
{
|
|
using std::vector;
|
|
|
|
enum InputEvent
|
|
{
|
|
None,
|
|
EncoderButtonPress,
|
|
EncoderButtonRelease,
|
|
EncoderRotateLeft,
|
|
EncoderRotateRight,
|
|
};
|
|
void init();
|
|
InputEvent getNextEvent(String name);
|
|
void registerForEvents(String name);
|
|
}
|
|
|
|
#endif // DRUMZ_USER_INPUT_MANAGER_HPP
|