[vala/wip/linux] WIP linux: Add more Input bindings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/linux] WIP linux: Add more Input bindings
- Date: Wed, 7 Aug 2019 20:05:08 +0000 (UTC)
commit ef2a631247807b8c1cb413ad756f714c6634d473
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Aug 7 21:50:09 2019 +0200
WIP linux: Add more Input bindings
vapi/linux.vapi | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index a231bb652..29838e876 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -1652,6 +1652,22 @@ namespace Linux {
public int32 flat;
}
+ [CCode (cname = "struct input_keymap_entry", has_type_id = false, cheader_filename =
"linux/input.h")]
+ public struct KeymapEntry {
+ public uint8 flags;
+ public uint8 len;
+ public uint16 index;
+ public uint32 keycode;
+ public uint8 scancode[32];
+ }
+
+ [CCode (cname = "struct input_mask", has_type_id = false, cheader_filename = "linux/input.h")]
+ public struct Mask {
+ public uint32 type;
+ public uint32 codes_size;
+ public uint32 codes_ptr;
+ }
+
/*
* ioctls
*/
@@ -1664,10 +1680,15 @@ namespace Linux {
public const int EVIOCGREP;
[CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
public const int EVIOCSREP;
+
[CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
public const int EVIOCGKEYCODE;
[CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
+ public const int EVIOCGKEYCODE_V2;
+ [CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
public const int EVIOCSKEYCODE;
+ [CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
+ public const int EVIOCSKEYCODE_V2;
[CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
public int EVIOCGNAME( uint len );
@@ -1675,6 +1696,10 @@ namespace Linux {
public int EVIOCGPHYS( uint len );
[CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
public int EVIOCGUNIQ( uint len );
+ [CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
+ public int EVIOCGPROP( uint len );
+ [CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
+ public int EVIOCGMTSLOTS( uint len );
[CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
public int EVIOCGKEY( uint len );
@@ -1700,6 +1725,35 @@ namespace Linux {
public const int EVIOCGEFFECTS;
[CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
public const int EVIOCGRAB;
+ [CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
+ public const int EVIOCREVOKE;
+ [CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
+ public const int EVIOCGMASK;
+ [CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
+ public const int EVIOCSMASK;
+ [CCode (cheader_filename = "linux/input.h,sys/ioctl.h")]
+ public const int EVIOCSCLOCKID;
+
+ /*
+ * device properties and quirks
+ */
+
+ [CCode (cheader_filename = "linux/input.h")]
+ public const uint16 INPUT_PROP_POINTER;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const uint16 INPUT_PROP_DIRECT;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const uint16 INPUT_PROP_BUTTONPAD;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const uint16 INPUT_PROP_SEMI_MT;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const uint16 INPUT_PROP_TOPBUTTONPAD;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const uint16 INPUT_PROP_POINTING_STICK;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const uint16 INPUT_PROP_ACCELEROMETER;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const uint16 INPUT_PROP_MAX;
/*
* event types
@@ -2816,6 +2870,8 @@ namespace Linux {
[CCode (cheader_filename = "linux/input.h")]
public const int KEY_DATA;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const int KEY_ONSCREEN_KEYBOARD;
[CCode (cheader_filename = "linux/input.h")]
public const int BTN_TRIGGER_HAPPY;
@@ -2930,6 +2986,12 @@ namespace Linux {
[CCode (cheader_filename = "linux/input.h")]
public const int REL_MISC;
[CCode (cheader_filename = "linux/input.h")]
+ public const int REL_RESERVED;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const int REL_WHEEL_HI_RES;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const int REL_HWHEEL_HI_RES;
+ [CCode (cheader_filename = "linux/input.h")]
public const int REL_MAX;
/*
@@ -2991,6 +3053,9 @@ namespace Linux {
[CCode (cheader_filename = "linux/input.h")]
public const int ABS_MISC;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const int ABS_RESERVED;
+
[CCode (cheader_filename = "linux/input.h")]
public const int ABS_MT_SLOT;
[CCode (cheader_filename = "linux/input.h")]
@@ -3188,6 +3253,14 @@ namespace Linux {
public const int BUS_GSC;
[CCode (cheader_filename = "linux/input.h")]
public const int BUS_ATARI;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const int BUS_SPI;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const int BUS_RMI;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const int BUS_CEC;
+ [CCode (cheader_filename = "linux/input.h")]
+ public const int BUS_INTEL_ISHTP;
/* MT_TOOL types */
[CCode (cheader_filename = "linux/input.h")]
@@ -3197,6 +3270,8 @@ namespace Linux {
[CCode (cheader_filename = "linux/input.h")]
public const int MT_TOOL_PALM;
[CCode (cheader_filename = "linux/input.h")]
+ public const int MT_TOOL_DIAL;
+ [CCode (cheader_filename = "linux/input.h")]
public const int MT_TOOL_MAX;
/* Values describing the status of a force-feedback effect */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]