resonance 1.0.1
Loading...
Searching...
No Matches
metcontrollerreading.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5class IBStream;
6class OBStream;
7
25public:
37 void Print(std::ostream &stream) const;
38
39 int mTag;
41 int mButton;
42 float mValue;
43};
44
55
Input half of the byte stream interface.
Definition ibstream.h:36
One controller reading, as RawControllerMsg carries it.
Definition metcontrollerreading.h:24
void Print(std::ostream &stream) const
Write the reading to a diagnostic stream as the device label, the pad index, the button,...
int mButton
Definition metcontrollerreading.h:41
float mValue
Definition metcontrollerreading.h:42
int mPadIndex
Definition metcontrollerreading.h:40
int mTag
Definition metcontrollerreading.h:39
Output half of the byte stream interface.
Definition obstream.h:25
OBStream & operator<<(OBStream &stream, const MetControllerReading &reading)
Write a controller reading as four four-byte transfers in member order.
IBStream & operator>>(IBStream &stream, MetControllerReading &reading)
Read a controller reading back as four four-byte transfers in member order.