Ignore:
Timestamp:
02/16/13 18:04:17 (11 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/client/c/hu/varadiistvan/xplra/XPlane.h

    r40 r54  
    282282    void showMessage(const char* message, float duration) throw(Exception);
    283283
     284    /**
     285     * Register the given hotkey codes for listening. If there is an
     286     * existing set of hotkeys registered, those will be overwritten.
     287     */
     288    void registerHotkeys(const uint16_t* codes, size_t length) throw(Exception);
     289
     290    /**
     291     * Query the registered hotkeys whether they were pressed.
     292     */
     293    void queryHotkeys(uint8_t* states, size_t length) throw(Exception);
     294
     295    /**
     296     * Unregister the hotkeys.
     297     */
     298    void unregisterHotkeys();
     299
    284300private:
    285301    /**
Note: See TracChangeset for help on using the changeset viewer.