aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11/ffi.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2014-07-31 17:33:46 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2014-07-31 17:33:46 +0200
commit59b4d23d58f804e0d9ae05cf80da67784680d186 (patch)
tree916586bddab3a83e76b968990f2257d28336bc27 /src/x11/ffi.rs
parent0d45c7fcb491fc9d39b3b3ddd586741c277fcced (diff)
downloadglutin-59b4d23d58f804e0d9ae05cf80da67784680d186.tar.gz
glutin-59b4d23d58f804e0d9ae05cf80da67784680d186.zip
Add mouse buttons press/release events for X11
Diffstat (limited to 'src/x11/ffi.rs')
-rw-r--r--src/x11/ffi.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs
index f73d408..2c94820 100644
--- a/src/x11/ffi.rs
+++ b/src/x11/ffi.rs
@@ -30,6 +30,12 @@ pub type XID = uint;
pub static AllocNone: libc::c_int = 0;
pub static AllocAll: libc::c_int = 1;
+pub static Button1: libc::c_uint = 1;
+pub static Button2: libc::c_uint = 2;
+pub static Button3: libc::c_uint = 3;
+pub static Button4: libc::c_uint = 4;
+pub static Button5: libc::c_uint = 5;
+
pub static InputOutput: libc::c_uint = 1;
pub static InputOnly: libc::c_uint = 2;