[Vala] x11-improvements 4/4: add missing XTest bindings



Hi,

Since I didn't find any Vala bindings for the XTest extension, I tried
writing them myself. The results are attached. I have also attached a
small demonstration program which will start/pause your music player.

This is how it should work:

$ valac --vapidir=. --pkg=x11 --pkg=xtst demo.vala && ./demo
Display :0.0 opened
String XF86AudioPlay has keysym 0x1008FF14
Keysym 0x1008FF14 has keycode 172
Keycode 172 pressed
Keycode 172 released
Display :0.0 flushed
$

I'm looking forward to any comments/criticism/whatever!

Best regards

Alexander Kurtz

Attachment: xtst.vapi
Description: Text Data

Attachment: xtst.deps
Description: Text document

Attachment: demo.vala
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]