mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-13 23:21:19 +10:00
20 lines
605 B
C++
20 lines
605 B
C++
#ifdef ARCH_PORTDUINO
|
|
#pragma once
|
|
#include "LinuxInput.h"
|
|
#include "main.h"
|
|
|
|
/**
|
|
* @brief The idea behind this class to have static methods for the event handlers.
|
|
* Check attachInterrupt() at RotaryEncoderInteruptBase.cpp
|
|
* Technically you can have as many rotary encoders hardver attached
|
|
* to your device as you wish, but you always need to have separate event
|
|
* handlers, thus you need to have a RotaryEncoderInterrupt implementation.
|
|
*/
|
|
|
|
class LinuxInputImpl : public LinuxInput {
|
|
public:
|
|
LinuxInputImpl();
|
|
void init();
|
|
};
|
|
extern LinuxInputImpl *aLinuxInputImpl;
|
|
#endif |