Vuo  1.0.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
VuoKeyboard.h File Reference

Description

VuoKeyboard interface.

Typedefs

typedef void * VuoKeyboard
 Handle returned when starting to listen for events, to be used when stopping listening.
 

Functions

VuoKeyboardVuoKeyboard_make (void)
 Creates a handle for starting and stopping event listeners.
 
void VuoKeyboard_startListeningForTyping (VuoKeyboard *keyboardListener, VuoOutputTrigger(typedLine, VuoText), VuoOutputTrigger(typedWord, VuoText), VuoOutputTrigger(typedCharacter, VuoText), VuoWindowReference window)
 Starts listening for key presses, and calling the trigger function each time a character (Unicode), word, or line is typed.
 
void VuoKeyboard_startListeningForButtons (VuoKeyboard *keyboardListener, VuoOutputTrigger(pressed, void), VuoOutputTrigger(released, void), VuoWindowReference window, VuoKey key, VuoModifierKey modifierKey, bool shouldFireForRepeat)
 Starts listening or key presses and releases, and calling the trigger function for each one.
 
void VuoKeyboard_stopListening (VuoKeyboard *keyboardListener)
 Stops listening for keyboard events for the given handle.
 

Typedef Documentation

typedef void* VuoKeyboard

Handle returned when starting to listen for events, to be used when stopping listening.

Function Documentation

VuoKeyboard* VuoKeyboard_make ( void  )

Creates a handle for starting and stopping event listeners.

void VuoKeyboard_startListeningForButtons ( VuoKeyboard keyboardListener,
VuoOutputTrigger(pressed, void)  ,
VuoOutputTrigger(released, void)  ,
VuoWindowReference  window,
VuoKey  key,
VuoModifierKey  modifierKey,
bool  shouldFireForRepeat 
)

Starts listening or key presses and releases, and calling the trigger function for each one.

void VuoKeyboard_startListeningForTyping ( VuoKeyboard keyboardListener,
VuoOutputTrigger(typedLine, VuoText ,
VuoOutputTrigger(typedWord, VuoText ,
VuoOutputTrigger(typedCharacter, VuoText ,
VuoWindowReference  window 
)

Starts listening for key presses, and calling the trigger function each time a character (Unicode), word, or line is typed.

void VuoKeyboard_stopListening ( VuoKeyboard keyboardListener)

Stops listening for keyboard events for the given handle.