#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)
// 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
//
class TransName
{
public:
- int cin, err;
+ int cin;
const char *name;
- regex_t regex;
TransName(int cin, const char *nm, const char *re);
~TransName();
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;
~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);