Changeset 54:fb6a875ea5d2 in xplra for test
- Timestamp:
- 02/16/13 18:04:17 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- test
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/Makefile.am
r31 r54 6 6 endif 7 7 8 noinst_PROGRAMS=ctest basictest basicctest multigettest multigetctest multisettest multisetctest 8 noinst_PROGRAMS=ctest basictest basicctest multigettest multigetctest multisettest multisetctest hotkeytest 9 9 10 10 ctest_SOURCES=ctest.c … … 34 34 endif 35 35 36 hotkeytest_SOURCES=hotkeytest.cc 37 36 38 EXTRA_DIST=\ 37 39 runpy.sh \ 38 basictest.py 40 basictest.py \ 41 multigettest.py \ 42 multisettest.py \ 43 hotkeytest.py -
test/hotkeytest.py
r53 r54 21 21 xplane.registerHotkeys([0x0241, 0x0142, 0x0343, 0x0251]) 22 22 print "Registered hotkeys..." 23 print 23 24 24 25 print "Listening to hotkeys..." … … 45 46 print ">>>>>>>>>>>>>>>>>>>>>> Exception caught:", str(e) 46 47 finally: 48 xplane.unregisterHotkeys() 47 49 xplane.disconnect()
Note:
See TracChangeset
for help on using the changeset viewer.