Search
lxdream.org :: lxdream/src/maple/maple.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/maple/maple.h
changeset 838:9abb2fa58934
prev770:429ff505c450
next850:28782ebbd01d
author nkeynes
date Tue Sep 02 00:42:43 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Add flag to maple devices indicating whether they need a mouse grab to operate
file annotate diff log raw
1.1 --- a/src/maple/maple.h Mon Jul 28 03:41:25 2008 +0000
1.2 +++ b/src/maple/maple.h Tue Sep 02 00:42:43 2008 +0000
1.3 @@ -56,6 +56,10 @@
1.4 #define MAPLE_FUNC_PURU_PURU 0x00010000
1.5 #define MAPLE_FUNC_MOUSE 0x00020000
1.6
1.7 +#define MAPLE_GRAB_DONTCARE 0
1.8 +#define MAPLE_GRAB_YES 1
1.9 +#define MAPLE_GRAB_NO 2
1.10 +
1.11 #define MAPLE_DEVICE_TAG 0x4D41504C
1.12 #define MAPLE_DEVICE(x) ((maple_device_t)x)
1.13
1.14 @@ -73,6 +77,7 @@
1.15 struct maple_device {
1.16 uint32_t _tag;
1.17 maple_device_class_t device_class;
1.18 + int grab_mode;
1.19 unsigned char ident[112];
1.20 unsigned char version[80];
1.21 lxdream_config_entry_t (*get_config)(struct maple_device *dev);
1.22 @@ -109,6 +114,7 @@
1.23 void maple_detach_device( unsigned int port, unsigned int periph );
1.24 void maple_detach_all( );
1.25 void maple_reattach_all( );
1.26 +gboolean maple_should_grab();
1.27
1.28 /**
1.29 * Default destroy implementation that just frees the dev memory.
.