LMMS
Loading...
Searching...
No Matches
juce::KeyPressHelpers Namespace Reference

Classes

struct  KeyNameAndCode
struct  ModifierDescription

Functions

static const char * numberPadPrefix () noexcept
static int getNumpadKeyCode (const String &desc)

Variables

const KeyNameAndCode translations []
static const ModifierDescription modifierNames []

Function Documentation

◆ getNumpadKeyCode()

int juce::KeyPressHelpers::getNumpadKeyCode ( const String & desc)
static

◆ numberPadPrefix()

const char * juce::KeyPressHelpers::numberPadPrefix ( )
staticnoexcept

Variable Documentation

◆ modifierNames

const ModifierDescription juce::KeyPressHelpers::modifierNames[]
static
Initial value:
=
{
{ "shift", ModifierKeys::shiftModifier },
{ "shft", ModifierKeys::shiftModifier },
{ "alt", ModifierKeys::altModifier },
{ "option", ModifierKeys::altModifier },
{ "command", ModifierKeys::commandModifier },
{ "cmd", ModifierKeys::commandModifier }
}
@ ctrlModifier
Definition juce_ModifierKeys.h:124

◆ translations

const KeyNameAndCode juce::KeyPressHelpers::translations[]
Initial value:
=
{
{ "spacebar", KeyPress::spaceKey },
{ "return", KeyPress::returnKey },
{ "escape", KeyPress::escapeKey },
{ "backspace", KeyPress::backspaceKey },
{ "cursor left", KeyPress::leftKey },
{ "cursor right", KeyPress::rightKey },
{ "cursor up", KeyPress::upKey },
{ "cursor down", KeyPress::downKey },
{ "page up", KeyPress::pageUpKey },
{ "page down", KeyPress::pageDownKey },
{ "home", KeyPress::homeKey },
{ "end", KeyPress::endKey },
{ "delete", KeyPress::deleteKey },
{ "insert", KeyPress::insertKey },
{ "tab", KeyPress::tabKey },
{ "play", KeyPress::playKey },
{ "stop", KeyPress::stopKey },
{ "fast forward", KeyPress::fastForwardKey },
{ "rewind", KeyPress::rewindKey }
}
static const int spaceKey
Definition juce_KeyPress.h:189
static const int escapeKey
Definition juce_KeyPress.h:190
static const int returnKey
Definition juce_KeyPress.h:191