projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Select mouse button by tag; expose buttons 4 and 5 in the UI.
[enjoyable.git]
/
Classes
/
NJOutputController.m
diff --git
a/Classes/NJOutputController.m
b/Classes/NJOutputController.m
index
ebedb1b
..
d022406
100644
(file)
--- a/
Classes/NJOutputController.m
+++ b/
Classes/NJOutputController.m
@@
-175,7
+175,7
@@
}
case 4: {
NJOutputMouseButton *mb = [[NJOutputMouseButton alloc] init];
}
case 4: {
NJOutputMouseButton *mb = [[NJOutputMouseButton alloc] init];
- mb.
humanIndexedButton = mouseBtnSelect.selectedSegment
;
+ mb.
button = [mouseBtnSelect.cell tagForSegment:mouseBtnSelect.selectedSegment]
;
return mb;
}
case 5: {
return mb;
}
case 5: {
@@
-242,7
+242,7
@@
}
else if ([output isKindOfClass:NJOutputMouseButton.class]) {
[radioButtons selectCellAtRow:4 column:0];
}
else if ([output isKindOfClass:NJOutputMouseButton.class]) {
[radioButtons selectCellAtRow:4 column:0];
-
mouseBtnSelect.selectedSegment = [(NJOutputMouseButton *)output humanIndexedButton
];
+
[mouseBtnSelect selectSegmentWithTag:[(NJOutputMouseButton *)output button]
];
}
else if ([output isKindOfClass:NJOutputMouseScroll.class]) {
[radioButtons selectCellAtRow:5 column:0];
}
else if ([output isKindOfClass:NJOutputMouseScroll.class]) {
[radioButtons selectCellAtRow:5 column:0];