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

#include <Input.h>

+ Collaboration diagram for Input::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 
 
} 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 40 of file Input.h.

Member Data Documentation

◆ buttons

bool Input::InputNotification::buttons[64]

Definition at line 55 of file Input.h.

◆ key

uint64_t Input::InputNotification::key

Definition at line 48 of file Input.h.

◆ keyUp

bool Input::InputNotification::keyUp

Whether this is a keyUp event or not.

Definition at line 70 of file Input.h.

◆ meta

void* Input::InputNotification::meta

Definition at line 44 of file Input.h.

◆ relx

ssize_t Input::InputNotification::relx

Definition at line 51 of file Input.h.

◆ rely

ssize_t Input::InputNotification::rely

Definition at line 52 of file Input.h.

◆ relz

ssize_t Input::InputNotification::relz

Definition at line 53 of file Input.h.

◆ scancode

uint8_t Input::InputNotification::scancode

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

Definition at line 67 of file Input.h.

◆ type

CallbackType Input::InputNotification::type

Definition at line 41 of file Input.h.

◆ wheel

ssize_t Input::InputNotification::wheel

Definition at line 60 of file Input.h.

◆ x

uint32_t Input::InputNotification::x

Definition at line 58 of file Input.h.

◆ y

uint32_t Input::InputNotification::y

Definition at line 59 of file Input.h.


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