VuoKeyboard implementation.
- Copyright
- Copyright © 2012–2016 Kosada Incorporated. This code may be modified and distributed under the terms of the MIT License. For more information, see http://vuo.org/license.
|
VuoKeyboard * | VuoKeyboard_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.
|
|