The Pedigree Project 0.1
Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
HidUtils::InputState Class Reference

Held input belongs to a report instance and is retired with that instance. More...

#include <HidUtils.h>

+ Collaboration diagram for HidUtils::InputState:

Public Member Functions

 InputState (const InputState &)=delete
 
InputState & operator= (const InputState &)=delete
 

Static Private Member Functions

static uint32_t buttons (HidDeviceType deviceType)
 

Private Attributes

InputState * m_pNext
 
uint64_t m_Keys [4]
 
uint32_t m_MouseButtons
 
uint32_t m_JoystickButtons
 

Static Private Attributes

static Spinlock m_Lock
 
static InputState * m_pInputs = nullptr
 

Friends

void sendInputToManager (HidDeviceType deviceType, uint16_t nUsagePage, uint16_t nUsage, int64_t nRelativeValue, InputState &state)
 Sends the input to the right handler in HidInputManager or InputManager.
 

Detailed Description

Held input belongs to a report instance and is retired with that instance.

Definition at line 32 of file HidUtils.h.

Constructor & Destructor Documentation

◆ InputState()

HidUtils::InputState::InputState ( )

Definition at line 30 of file HidUtils.cc.

◆ ~InputState()

HidUtils::InputState::~InputState ( )

Definition at line 37 of file HidUtils.cc.

Member Function Documentation

◆ buttons()

uint32_t HidUtils::InputState::buttons ( HidDeviceType  deviceType)
staticprivate

Definition at line 57 of file HidUtils.cc.

Member Data Documentation

◆ m_JoystickButtons

uint32_t HidUtils::InputState::m_JoystickButtons
private

Definition at line 48 of file HidUtils.h.

◆ m_Keys

uint64_t HidUtils::InputState::m_Keys[4]
private

Definition at line 46 of file HidUtils.h.

◆ m_Lock

Spinlock HidUtils::InputState::m_Lock
staticprivate

Definition at line 43 of file HidUtils.h.

◆ m_MouseButtons

uint32_t HidUtils::InputState::m_MouseButtons
private

Definition at line 47 of file HidUtils.h.

◆ m_pInputs

HidUtils::InputState * HidUtils::InputState::m_pInputs = nullptr
staticprivate

Definition at line 44 of file HidUtils.h.

◆ m_pNext

InputState* HidUtils::InputState::m_pNext
private

Definition at line 45 of file HidUtils.h.


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