Frame Level Language for controlling DUALSHOCK2
Diff: fllaux.h
- Revision:
- 1:905fe1a0ca5a
- Parent:
- 0:a436e2063a3d
--- a/fllaux.h Thu Feb 19 06:59:49 2015 +0000 +++ b/fllaux.h Thu Feb 19 13:47:15 2015 +0000 @@ -42,6 +42,10 @@ float sec; } button_time; // TODO: rename +button_time single(button_t btn); +button_time hold(button_t btn, float sec); +button_time space(float sec); + // human friendly source class EasySource : public Producer { @@ -50,9 +54,11 @@ int bt_size; int index; int frame_i; - float lag; + bool spacing; + int space_frame; public: EasySource(button_time* seq, int size); + EasySource(button_time* seq, int size, int spacer); // spacer is the number of frame virtual button_t await(); virtual bool is_finished(); virtual void reset();