|
@@ -1,16 +1,26 @@
|
|
|
class PlatformBehavior {
|
|
class PlatformBehavior {
|
|
|
- const PlatformBehavior(
|
|
|
|
|
- {required this.oscTerminators, required this.useMacInputBehavior});
|
|
|
|
|
|
|
+ const PlatformBehavior({
|
|
|
|
|
+ required this.oscTerminators,
|
|
|
|
|
+ required this.useMacInputBehavior,
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
final Set<int> oscTerminators;
|
|
final Set<int> oscTerminators;
|
|
|
final bool useMacInputBehavior;
|
|
final bool useMacInputBehavior;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
class PlatformBehaviors {
|
|
class PlatformBehaviors {
|
|
|
- static const mac =
|
|
|
|
|
- PlatformBehavior(oscTerminators: {0x07, 0x5c}, useMacInputBehavior: true);
|
|
|
|
|
|
|
+ static const mac = PlatformBehavior(
|
|
|
|
|
+ oscTerminators: {0x07, 0x5c},
|
|
|
|
|
+ useMacInputBehavior: true,
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
static const unix = PlatformBehavior(
|
|
static const unix = PlatformBehavior(
|
|
|
- oscTerminators: {0x07, 0x5c}, useMacInputBehavior: false);
|
|
|
|
|
|
|
+ oscTerminators: {0x07, 0x5c},
|
|
|
|
|
+ useMacInputBehavior: false,
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
static const windows = PlatformBehavior(
|
|
static const windows = PlatformBehavior(
|
|
|
- oscTerminators: {0x07, 0x00}, useMacInputBehavior: false);
|
|
|
|
|
|
|
+ oscTerminators: {0x07, 0x00},
|
|
|
|
|
+ useMacInputBehavior: false,
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|