Arduino Universal Inputs
A collection of libraries for managing/processing input devices on Arduino.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | List of all members
IInputDevice Class Referenceabstract

Represents an input device. More...

#include <IInputDevice.h>

Inheritance diagram for IInputDevice:
Inheritance graph
[legend]

Public Member Functions

 IInputDevice (inputid_t id)
 Creates a new input device. More...
 
inputid_t getID () const
 Retrieves the ID of this device. More...
 
virtual inputtype_t type () const =0
 Retrieves the type of this device. More...
 
virtual bool poll ()=0
 Polls this input device for change. More...
 

Detailed Description

Represents an input device.

Provides basic functionality for an abstract input device.

Constructor & Destructor Documentation

IInputDevice::IInputDevice ( inputid_t  id)
inline

Creates a new input device.

Parameters
idID of the inout device

Member Function Documentation

inputid_t IInputDevice::getID ( ) const
inline

Retrieves the ID of this device.

Returns
Device ID
virtual bool IInputDevice::poll ( )
pure virtual

Polls this input device for change.

Returns
True if any state change occurred.

Implemented in IButton, and IJoystick.

virtual inputtype_t IInputDevice::type ( ) const
pure virtual

Retrieves the type of this device.

Returns
Device type

Implemented in IButton, and IJoystick.


The documentation for this class was generated from the following file: