Vuo  1.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Macros | Functions
VuoKeyboard.m File Reference

Description

VuoKeyboard implementation.

Classes

struct  VuoKeyboardContext
 Handle for starting and stopping event listeners. More...
 

Functions

VuoKeyboardVuoKeyboard_make (void)
 Creates a handle for starting and stopping event listeners.
 
static void VuoKeyboard_fireTypingIfNeeded (NSEvent *event, struct VuoKeyboardContext *context, VuoOutputTrigger(typedLine, VuoText), VuoOutputTrigger(typedWord, VuoText), VuoOutputTrigger(typedCharacter, VuoText), VuoWindowReference windowRef)
 If the keypress event is not ignored, calls the trigger function(s) if this event completes a character (Unicode), word, and/or line.
 
static void VuoKeyboard_fireButtonsIfNeeded (NSEvent *event, VuoOutputTrigger(pressed, void), VuoOutputTrigger(released, void), VuoWindowReference windowRef, VuoKey key, VuoModifierKey modifierKey, bool shouldFireForRepeat)
 If the key event is not ignored, calls one of the trigger functions.
 
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.
 

Function Documentation

static void VuoKeyboard_fireButtonsIfNeeded ( NSEvent *  event,
VuoOutputTrigger(pressed, void)  ,
VuoOutputTrigger(released, void)  ,
VuoWindowReference  windowRef,
VuoKey  key,
VuoModifierKey  modifierKey,
bool  shouldFireForRepeat 
)
static

If the key event is not ignored, calls one of the trigger functions.

static void VuoKeyboard_fireTypingIfNeeded ( NSEvent *  event,
struct VuoKeyboardContext context,
VuoOutputTrigger(typedLine, VuoText ,
VuoOutputTrigger(typedWord, VuoText ,
VuoOutputTrigger(typedCharacter, VuoText ,
VuoWindowReference  windowRef 
)
static

If the keypress event is not ignored, calls the trigger function(s) if this event completes a character (Unicode), word, and/or line.

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.