Mac OS X gamepad emulator for serial RC transmitters
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MainWindow.m 566B

123456789101112131415161718192021222324252627282930
  1. //
  2. // MainWindow.m
  3. // SerialGamepad
  4. //
  5. // Created by Thomas Buck on 14.12.15.
  6. // Copyright © 2015 xythobuz. All rights reserved.
  7. //
  8. #import "MainWindow.h"
  9. #import "Serial.h"
  10. @implementation MainWindow
  11. @synthesize portList, connectButton, createButton, level1, level2, level3, level4, level5, level6;
  12. - (IBAction)connectButtonPressed:(id)sender {
  13. }
  14. - (IBAction)createButtonPressed:(id)sender {
  15. }
  16. - (void)populatePortList {
  17. NSArray *ports = [Serial listSerialPorts];
  18. [portList removeAllItems];
  19. [portList addItemsWithTitles:ports];
  20. }
  21. @end