The Pedigree Project 0.1
Public Attributes | List of all members
InputManager::InputNotification Struct Reference

#include <InputManager.h>

+ Collaboration diagram for InputManager::InputNotification:

Public Attributes

CallbackType type
 
void * meta
 
union { 
 
   struct { 
 
      uint64_t   key 
 
   }   key 
 
   struct { 
 
      ssize_t   relx 
 
      ssize_t   rely 
 
      ssize_t   relz 
 
      bool   buttons [64] 
 
   }   pointy 
 
   struct { 
 
      uint32_t   x 
 
      uint32_t   y 
 
      ssize_t   wheel 
 
      bool   buttons [64] 
 
   }   absolute 
 
   struct { 
 
      uint8_t   scancode 
 
      bool   keyUp 
 Whether this is a keyUp event or not. More...
 
   }   rawkey 
 
   struct { 
 
      uint8_t   scancode 
 Machine-specific scancode for the key. More...
 
      bool   keyUp 
 Whether this is a keyUp event or not. More...
 
   }   machinekey 
 
} data 
 

Detailed Description

Structure containing notification to the remote application of input. Used to generalise input handling across the system for all types of devices.

Definition at line 56 of file InputManager.h.

Member Data Documentation

◆ buttons

bool InputManager::InputNotification::buttons[64]

Definition at line 69 of file InputManager.h.

◆ key

uint64_t InputManager::InputNotification::key

Definition at line 62 of file InputManager.h.

◆ keyUp

bool InputManager::InputNotification::keyUp

Whether this is a keyUp event or not.

Definition at line 84 of file InputManager.h.

Referenced by InputManager::machineKeyUpdate(), and InputManager::rawKeyUpdate().

◆ meta

void* InputManager::InputNotification::meta

Definition at line 58 of file InputManager.h.

◆ relx

ssize_t InputManager::InputNotification::relx

Definition at line 65 of file InputManager.h.

◆ rely

ssize_t InputManager::InputNotification::rely

Definition at line 66 of file InputManager.h.

◆ relz

ssize_t InputManager::InputNotification::relz

Definition at line 67 of file InputManager.h.

◆ scancode

uint8_t InputManager::InputNotification::scancode

Machine-specific scancode for the key.

HID scancode for the key (most generic type of scancode, and easy to build translation tables for)

Definition at line 81 of file InputManager.h.

Referenced by InputManager::machineKeyUpdate(), and InputManager::rawKeyUpdate().

◆ type

CallbackType InputManager::InputNotification::type

Definition at line 57 of file InputManager.h.

◆ wheel

ssize_t InputManager::InputNotification::wheel

Definition at line 74 of file InputManager.h.

◆ x

uint32_t InputManager::InputNotification::x

Definition at line 72 of file InputManager.h.

◆ y

uint32_t InputManager::InputNotification::y

Definition at line 73 of file InputManager.h.


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