Changeset 54:fb6a875ea5d2 in xplra for test


Ignore:
Timestamp:
02/16/13 18:04:17 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added support for the hotkey functions in the C++ client and a test program as well

Location:
test
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    r31 r54  
    66endif
    77
    8 noinst_PROGRAMS=ctest basictest basicctest multigettest multigetctest multisettest multisetctest
     8noinst_PROGRAMS=ctest basictest basicctest multigettest multigetctest multisettest multisetctest hotkeytest
    99
    1010ctest_SOURCES=ctest.c
     
    3434endif
    3535
     36hotkeytest_SOURCES=hotkeytest.cc
     37
    3638EXTRA_DIST=\
    3739        runpy.sh                \
    38         basictest.py
     40        basictest.py            \
     41        multigettest.py         \
     42        multisettest.py         \
     43        hotkeytest.py
  • test/hotkeytest.py

    r53 r54  
    2121        xplane.registerHotkeys([0x0241, 0x0142, 0x0343, 0x0251])
    2222        print "Registered hotkeys..."
     23        print
    2324
    2425        print "Listening to hotkeys..."
     
    4546        print ">>>>>>>>>>>>>>>>>>>>>> Exception caught:", str(e)
    4647    finally:
     48        xplane.unregisterHotkeys()
    4749        xplane.disconnect()
Note: See TracChangeset for help on using the changeset viewer.