Laxkit  0.0.7.1
Public Member Functions | Public Attributes
Laxkit::DeviceEventData Class Reference

Event class for device events other than common mouse and keyboard events. More...

Inheritance diagram for Laxkit::DeviceEventData:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DeviceEventData (int i=0, int si=0)
 Device id and subid of relevant device.
- Public Member Functions inherited from Laxkit::EventData
 EventData (const char *message, unsigned long fromwindow=0, unsigned long towindow=0)
 EventData (int message, unsigned long fromwindow=0, unsigned long towindow=0)

Public Attributes

int id
int subid
int xflags
int xdev
int xattachment
int xenabled
Time xtime
- Public Attributes inherited from Laxkit::EventData
unsigned long type
unsigned long subtype
charsend_message
unsigned long from
unsigned long to
int propagate
clock_t send_time
unsigned long xlib_time
EventDatanext

Detailed Description

Event class for device events other than common mouse and keyboard events.

Particularly LAX_onDeviceChange, which can say that either some state of a device has changed (LAX_DeviceStateChange), a device's own capabilities have changed (LAX_DeviceChanged), device's controller has changed (for xinput2, this means the active slave device has changed, LAX_DeviceSwitched), or the device hierarchy has changed (LAX_DeviceHierarchyChange). The event->subtype will be set to one of these things.

For LAX_DeviceSwitched, this indicates that the new xinput2 slave device has an xid=subid.

LAX_DeviceHierarchyChange events are for each instance of a change in a hierarchy. For instance, when a new mouse is plugged in, X might send 2 hierarchy messages, one to say a new slave device is added, and one to say it is enabled. These events are translated into DeviceEventData objects. This is mainly useful only for low level utilities, so the X specific data is passed on raw.


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

Mon Feb 17 2014 11:52:59, Laxkit