Ignore:
Timestamp:
02/16/13 18:14:55 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 3 'hg:/home/ivaradi/xplane/hg/xplra' '/'>, 'public')
Message:

Added the C client API for hotkey handling and the test program. Also changed the name of _sleep to xplra_sleep to be able to compile the code for Windows

File:
1 edited

Legend:

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

    r40 r55  
    9999/*----------------------------------------------------------------------------*/
    100100
     101/** Hotkey modifier: Shift */
     102#define HOTKEY_MODIFIER_SHIFT 0x01
     103
     104/** Hotkey modifier: Control */
     105#define HOTKEY_MODIFIER_CONTROL 0x02
     106
     107/*----------------------------------------------------------------------------*/
     108
    101109#define INVALID_DATAREF_ID ((size_t)-1)
    102110
     
    751759
    752760/**
     761 * Register the given hotkey codes for listening. If there is an
     762 * existing set of hotkeys registered, those will be overwritten.
     763 */
     764int xplra_register_hotkeys(int connectionID,
     765                           const uint16_t* codes, size_t length);
     766
     767/*----------------------------------------------------------------------------*/
     768
     769/**
     770 * Query the registered hotkeys whether they were pressed.
     771 */
     772int xplra_query_hotkeys(int connectionID, uint8_t* states, size_t length);
     773
     774/*----------------------------------------------------------------------------*/
     775
     776/**
     777 * Unregister the hotkeys.
     778 */
     779int xplra_unregister_hotkeys(int connectionID);
     780
     781/*----------------------------------------------------------------------------*/
     782/*----------------------------------------------------------------------------*/
     783
     784/**
    753785 * Destroy the connection with the given ID.
    754786 *
Note: See TracChangeset for help on using the changeset viewer.