New upstream version 1.3.0~svn324

This commit is contained in:
Alexander Ponyatykh committed 2019-11-13 22:51:35 +03:00
1 parent 862c94c485
commit 649e30d0a2
18 files changed
+395 -42203

No files matched your search

+18 -5
View File
@@ -17,7 +17,7 @@
(c) 2006 - 2007 The G15tools Project - g15tools.sf.net
$Revision: 292 $ - $Date: 2008-11-11 08:51:25 -0500 (Tue, 11 Nov 2008) $ $Author: aneurysm9 $
$Revision: 324 $ - $Date: 2011-02-24 03:13:57 +0300 (Thu, 24 Feb 2011) $ $Author: SteelSide $
*/
#ifndef _LIBG15_H_
@@ -32,8 +32,11 @@ extern "C"
#define G15_KEYS 2
#define G15_DEVICE_IS_SHARED 4
#define G15_DEVICE_5BYTE_RETURN 8
#define G15_DEVICE_G13 16
#define G15_DEVICE_G510 32
#define G15_KEY_READ_LENGTH 9
#define G510_STANDARD_KEYBOARD_INTERFACE 0x0
typedef struct libg15_devices_t libg15_devices_t;
@@ -126,22 +129,31 @@ struct libg15_devices_t {
G15_KEY_G16 = 1<<15,
G15_KEY_G17 = 1<<16,
G15_KEY_G18 = 1<<17,
G15_KEY_G19 = 1<<28,
G15_KEY_G20 = 1<<29,
G15_KEY_G21 = 1<<30,
G15_KEY_G22 = 1<<31,
G15_KEY_M1 = 1<<18,
G15_KEY_M2 = 1<<19,
G15_KEY_M3 = 1<<20,
G15_KEY_MR = 1<<21,
G15_KEY_L1 = 1<<22,
G15_KEY_L2 = 1<<23,
G15_KEY_L3 = 1<<24,
G15_KEY_L4 = 1<<25,
G15_KEY_L5 = 1<<26,
G15_KEY_LIGHT = 1<<27
//need to add them to the enum but not enough positions left
// G15_KEY_JOYBL = 1<<32,
// G15_KEY_JOYBD = 1<<33,
// G15_KEY_JOYBS = 1<<34
};
/* this one return G15_NO_ERROR on success, something
* else otherwise (for instance G15_ERROR_OPENING_USB_DEVICE */
int initLibG15();
@@ -157,6 +169,7 @@ struct libg15_devices_t {
int setLEDs(unsigned int leds);
int setLCDBrightness(unsigned int level);
int setKBBrightness(unsigned int level);
int setG510LEDColor(unsigned char r, unsigned char g, unsigned char b);
/* Please be warned
* the g15 sends two different usb msgs for each key press