resonance 1.0.1
Loading...
Searching...
No Matches
rawcontrollermsg.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "mid/tick.h"
6#include "msg/message.h"
8
24class RawControllerMsg : public Message {
25public:
32 static int sID;
33
44 static Message *New();
45
53 virtual Message *Clone();
54
62 virtual int Type();
63
71 virtual const char *GetName() const;
72
80 virtual void PrintExtra(std::ostream &stream) const;
81
84};
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
One controller reading, as RawControllerMsg carries it.
Definition metcontrollerreading.h:24
Event the game passes between a MsgSource and a MsgSink.
Definition rawcontrollermsg.h:24
virtual void PrintExtra(std::ostream &stream) const
Write the reading to a diagnostic stream through MetControllerReading::Print().
virtual const char * GetName() const
Report this message's class name.
virtual Message * Clone()
Produce a heap copy of this message.
static Message * New()
Produce a default-constructed message on the heap.
MetControllerReading mReading
Definition rawcontrollermsg.h:82
virtual int Type()
Report this message's registered identity.
static int sID
Identity that Type() reports.
Definition rawcontrollermsg.h:32
Sch::Tick mPosition
Definition rawcontrollermsg.h:83
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70