projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Save after deleting a config. Reset target to no-op when deleting its config, rather...
[enjoyable.git]
/
JSActionHat.m
diff --git
a/JSActionHat.m
b/JSActionHat.m
index
174d2df
..
2cac39c
100644
(file)
--- a/
JSActionHat.m
+++ b/
JSActionHat.m
@@
-41,7
+41,7
@@
static BOOL active_fourway[20] = {
}
- (id)findSubActionForValue:(IOHIDValueRef)value {
}
- (id)findSubActionForValue:(IOHIDValueRef)value {
-
int
parsed = IOHIDValueGetIntegerValue(value);
+
long
parsed = IOHIDValueGetIntegerValue(value);
switch (IOHIDElementGetLogicalMax(IOHIDValueGetElement(value))) {
case 7: // 8-way switch, 0-7.
switch (parsed) {
switch (IOHIDElementGetLogicalMax(IOHIDValueGetElement(value))) {
case 7: // 8-way switch, 0-7.
switch (parsed) {
@@
-81,8
+81,8
@@
static BOOL active_fourway[20] = {
}
- (void)notifyEvent:(IOHIDValueRef)value {
}
- (void)notifyEvent:(IOHIDValueRef)value {
-
int
parsed = IOHIDValueGetIntegerValue(value);
-
int
size = IOHIDElementGetLogicalMax(IOHIDValueGetElement(value));
+
long
parsed = IOHIDValueGetIntegerValue(value);
+
long
size = IOHIDElementGetLogicalMax(IOHIDValueGetElement(value));
// Skip first row in table if 0 is not neutral.
if (size & 1) {
parsed++;
// Skip first row in table if 0 is not neutral.
if (size & 1) {
parsed++;