-Updated Event pretty names, now works for all normal bindable events

main
Harry van Haaren 2013-10-18 16:00:52 +01:00
parent 0c5d9cbd0c
commit dd2be6fa0f
2 changed files with 19 additions and 0 deletions

View File

@ -5,9 +5,16 @@
const char* EventMasterVol::prettyName = "Master Volume";
const char* EventMasterReturn::prettyName = "Master Return";
const char* EventMasterInputVol::prettyName = "Master Input Volume";
const char* EventMasterInputTo::prettyName = "Master Input To";
const char* EventMasterInputToActive::prettyName = "Master Input To Active";
const char* EventTrackVol::prettyName = "Track Volume";
const char* EventTrackSend::prettyName = "Track Send";
const char* EventTrackSendActive::prettyName = "Track Send Active";
const char* EventTrackRecordArm::prettyName = "Track Record Arm";
const char* EventTimeBPM::prettyName = "Tempo BPM";
const char* EventTimeTempoTap::prettyName = "Tempo Tap";
const char* EventGridEvent::prettyName = "Grid Press / Release";
const char* EventGridLaunchScene::prettyName = "Grid Launch Scene";

View File

@ -174,6 +174,8 @@ class EventMasterInputTo : public EventBase
public:
int type() { return int(MASTER_INPUT_TO); }
uint32_t size() { return sizeof(EventMasterInputTo); }
static const char* prettyName;
const char* name(){ return prettyName; }
INPUT_TO place;
float value;
@ -186,6 +188,8 @@ class EventMasterInputToActive : public EventBase
public:
int type() { return int(MASTER_INPUT_TO_ACTIVE); }
uint32_t size() { return sizeof(EventMasterInputToActive); }
static const char* prettyName;
const char* name(){ return prettyName; }
INPUT_TO place;
bool active;
@ -361,6 +365,8 @@ class EventTrackSend : public EventBase
public:
int type() { return int(TRACK_SEND); }
uint32_t size() { return sizeof(EventTrackSend); }
static const char* prettyName;
const char* name(){ return prettyName; }
int track;
SEND_TYPE send;
@ -375,6 +381,8 @@ class EventTrackSendActive : public EventBase
public:
int type() { return int(TRACK_SEND_ACTIVE); }
uint32_t size() { return sizeof(EventTrackSendActive); }
static const char* prettyName;
const char* name(){ return prettyName; }
int track;
SEND_TYPE send;
@ -470,6 +478,8 @@ class EventTimeBPM : public EventBase
public:
int type() { return int(TIME_BPM); }
uint32_t size() { return sizeof(EventTimeBPM); }
static const char* prettyName;
const char* name(){ return prettyName; }
float bpm;
@ -496,6 +506,8 @@ class EventTimeTempoTap : public EventBase
public:
int type() { return int(TIME_TEMPO_TAP); }
uint32_t size() { return sizeof(EventTimeTempoTap); }
static const char* prettyName;
const char* name(){ return prettyName; }
bool pressed; // only used to turn on / off the button in GUI
EventTimeTempoTap():pressed(false){}