platform.dart 566 B

1234567891011121314151617181920212223242526
  1. class PlatformBehavior {
  2. const PlatformBehavior({
  3. required this.oscTerminators,
  4. required this.useMacInputBehavior,
  5. });
  6. final Set<int> oscTerminators;
  7. final bool useMacInputBehavior;
  8. }
  9. class PlatformBehaviors {
  10. static const mac = PlatformBehavior(
  11. oscTerminators: {0x07, 0x5c},
  12. useMacInputBehavior: true,
  13. );
  14. static const unix = PlatformBehavior(
  15. oscTerminators: {0x07, 0x5c},
  16. useMacInputBehavior: false,
  17. );
  18. static const windows = PlatformBehavior(
  19. oscTerminators: {0x07, 0x00},
  20. useMacInputBehavior: false,
  21. );
  22. }