Generic peripheral base.
#include <srl_input.hpp>
Public Member Functions | |
PeripheralFamily | GetFamily () |
Gets connected peripheral type family. | |
PeripheralType | GetType () |
Gets connected peripheral type. | |
virtual bool | IsConnected () |
Indicates whether peripheral is connected or not. | |
Public Attributes | |
uint8_t | Port = 0 |
Port number peripheral is connected to. | |
Protected Member Functions | |
PeripheralGeneric (uint8_t port) | |
Generic peripheral. | |
PerDigital * | GetCurrentFrameState () |
Get state of the peripheral in the current frame. | |
PerDigital * | GetPreviousFrameState () |
Get state of the peripheral in the previous frame. | |
|
inlineprotected |
Generic peripheral.
port | Peripheral port |
|
inlineprotected |
Get state of the peripheral in the current frame.
|
inline |
Gets connected peripheral type family.
|
inlineprotected |
Get state of the peripheral in the previous frame.
|
inline |
Gets connected peripheral type.
|
inlinevirtual |
Indicates whether peripheral is connected or not.
Reimplemented in SRL::Input::Pointer, SRL::Input::Gun, SRL::Input::Digital, and SRL::Input::Analog.
uint8_t SRL::Input::PeripheralGeneric::Port = 0 |
Port number peripheral is connected to.