X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fshuttle.h;h=0f07e8eaf9fc9f93566fee5dcfa37dc29431fd1c;hp=e3bd2c914354233a1ba4485407b1f4e2b957e77c;hb=7773615d89c9da219d3ade11c265601bfbc07dc0;hpb=f4204ea29aa3760a91c10791944ab848dd74ef8c diff --git a/cinelerra-5.1/cinelerra/shuttle.h b/cinelerra-5.1/cinelerra/shuttle.h index e3bd2c91..0f07e8ea 100644 --- a/cinelerra-5.1/cinelerra/shuttle.h +++ b/cinelerra-5.1/cinelerra/shuttle.h @@ -9,7 +9,6 @@ #include #include -#include // Copyright 2013 Eric Messick (FixedImagePhoto.com/Contact) // reworked 2019 for cinelerra-gg by William Morrow (aka goodguy) @@ -17,6 +16,8 @@ // delay in ms before processing each XTest event // CurrentTime means no delay #define DELAY CurrentTime +// playback max speed -64x .. 64x +#define SHUTTLE_MAX_SPEED 64. // protocol for events from the shuttlepro HUD device // @@ -121,9 +122,8 @@ public: class TransName { public: - int cin, err; + int cin; const char *name; - regex_t regex; TransName(int cin, const char *nm, const char *re); ~TransName(); @@ -182,10 +182,7 @@ public: class Shuttle : public Thread { int fd; - unsigned short jogvalue; - int shuttlevalue; - struct timeval last_shuttle; - int need_synthetic_shuttle; + unsigned short jogvalue, shuttlevalue; const char *dev_name; Translation *default_translation; Translations translations; @@ -194,7 +191,7 @@ public: ~Shuttle(); int send_button(unsigned int button, int press); - int send_key(KeySym keysym, int press); + int send_keycode(unsigned int keycode, int press, int send); int send_keysym(KeySym keysym, int press); void send_stroke_sequence(int kjs, int index); void key(unsigned short code, unsigned int value);