x11.xlib: add a few things for xinput2

db4
Niklas.Waern 2010-05-22 00:05:34 +02:00
parent 715973905f
commit e06ba797ca
1 changed files with 40 additions and 0 deletions

View File

@ -1013,6 +1013,34 @@ STRUCT: XKeymapEvent
{ window Window }
{ pad int[8] } ;
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Newer things, needed for XInput2 support. Not in the book.
! GenericEvent is the standard event for all newer extensions.
STRUCT: XGenericEvent
{ type int }
{ serial ulong }
{ send_event Bool }
{ display Display* }
{ extension int }
{ evtype int } ;
STRUCT: XGenericEventCookie
{ type int }
{ serial ulong }
{ send_event Bool }
{ display Display* }
{ extension int }
{ evtype int }
{ cookie uint }
{ data void* } ;
X-FUNCTION: Bool XGetEventData ( Display* dpy, XGenericEventCookie* cookie ) ;
X-FUNCTION: void XFreeEventData ( Display* dpy, XGenericEventCookie* cookie ) ;
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
UNION-STRUCT: XEvent
{ int int }
{ XAnyEvent XAnyEvent }
@ -1046,6 +1074,8 @@ UNION-STRUCT: XEvent
{ XMappingEvent XMappingEvent }
{ XErrorEvent XErrorEvent }
{ XKeymapEvent XKeymapEvent }
{ XGenericEvent XGenericEvent }
{ XGenericEventCookie XGenericEventCookie }
{ padding long[24] } ;
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@ -1218,6 +1248,16 @@ X-FUNCTION: Pixmap XCreateBitmapFromData (
uint width,
uint height ) ;
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Appendix C - Extensions
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
X-FUNCTION: Bool XQueryExtension (
Display* display,
c-string name,
int* major_opcode_return,
int* first_event_return,
int* first_error_return ) ;
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Appendix D - Compatibility Functions
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!