SaturnRingLibrary 0.9.1
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::Input::PeripheralGeneric Struct Reference

Detailed Description

Generic peripheral base.

#include <srl_input.hpp>

Inheritance diagram for SRL::Input::PeripheralGeneric:
SRL::Input::Digital SRL::Input::Gun SRL::Input::Pointer SRL::Input::Analog

Public Member Functions

PeripheralFamily GetFamily () const
 Gets connected peripheral type family.
 
PeripheralType GetType () const
 Gets connected peripheral type.
 
virtual bool IsConnected () const
 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 () const
 Get state of the peripheral in the current frame.
 
PerDigital * GetPreviousFrameState () const
 Get state of the peripheral in the previous frame.