x11.xinput2: xi2-available?
parent
e06ba797ca
commit
35f7d049ae
|
@ -1,4 +1,17 @@
|
||||||
! Copyright (C) 2010 Niklas Waern.
|
! Copyright (C) 2010 Niklas Waern.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: ;
|
USING: alien.c-types combinators kernel namespaces x11
|
||||||
|
x11.constants x11.xinput2.ffi ;
|
||||||
IN: x11.xinput2
|
IN: x11.xinput2
|
||||||
|
|
||||||
|
: (xi2-available?) ( display -- ? )
|
||||||
|
2 0 [ <int> ] bi@
|
||||||
|
XIQueryVersion
|
||||||
|
{
|
||||||
|
{ BadRequest [ f ] }
|
||||||
|
{ Success [ t ] }
|
||||||
|
[ "Internal Xlib error." throw ]
|
||||||
|
} case ;
|
||||||
|
|
||||||
|
: xi2-available? ( -- ? ) dpy get (xi2-available?) ; inline
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue