projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved plugins with added Tumbler box and visible values
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
shuttle.C
diff --git
a/cinelerra-5.1/cinelerra/shuttle.C
b/cinelerra-5.1/cinelerra/shuttle.C
index df2850dc8e4f22a5c6915e7062ddb151378b74d4..4860a7697a4c7a6076154f7fbae6132f955013f4 100644
(file)
--- a/
cinelerra-5.1/cinelerra/shuttle.C
+++ b/
cinelerra-5.1/cinelerra/shuttle.C
@@
-553,6
+553,11
@@
void Shuttle::key(unsigned short code, unsigned int value)
fprintf(stderr, "key(%d, %d) out of range\n", code + EVENT_CODE_KEY1, value);
return;
}
fprintf(stderr, "key(%d, %d) out of range\n", code + EVENT_CODE_KEY1, value);
return;
}
+// Show help if both Alt's pressed on keyboard together with a shuttle button
+ if( wdw && wdw->alt_down() ) {
+ if( value ) wdw->context_help_show("Shuttle key default arrangement");
+ return;
+ }
send_stroke_sequence(value ? KJS_KEY_DOWN : KJS_KEY_UP, code);
}
send_stroke_sequence(value ? KJS_KEY_DOWN : KJS_KEY_UP, code);
}
@@
-603,6
+608,8
@@
void Shuttle::jogshuttle(unsigned short code, unsigned int value)
case EVENT_CODE_SHUTTLE:
shuttle(value);
break;
case EVENT_CODE_SHUTTLE:
shuttle(value);
break;
+ case EVENT_CODE_HI_JOG: // redundant report of JOG value*120
+ break;
default:
fprintf(stderr, "jogshuttle(%d, %d) invalid code\n", code, value);
break;
default:
fprintf(stderr, "jogshuttle(%d, %d) invalid code\n", code, value);
break;
@@
-893,7
+900,7
@@
void Shuttle::run()
if( first_time ) break;
continue;
}
if( first_time ) break;
continue;
}
- if( !ioctl(fd, EVIOCGRAB, 1) ) { // exclusive access
+ if(
1 ||
!ioctl(fd, EVIOCGRAB, 1) ) { // exclusive access
first_time = 0;
while( !done ) {
int ret = read(fd, &ev, sizeof(ev));
first_time = 0;
while( !done ) {
int ret = read(fd, &ev, sizeof(ev));