shuttle and transportque reworks, new shdmp, titler font textbox tweak
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / shuttle.h
index e3bd2c914354233a1ba4485407b1f4e2b957e77c..0f07e8eaf9fc9f93566fee5dcfa37dc29431fd1c 100644 (file)
@@ -9,7 +9,6 @@
 
 #include <linux/input.h>
 #include <sys/types.h>
-#include <regex.h>
 
 // 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);