25 #ifndef JUCE_KEYPRESS_H_INCLUDED 26 #define JUCE_KEYPRESS_H_INCLUDED 97 bool isValid() const noexcept {
return keyCode != 0; }
127 bool isKeyCode (
int keyCodeToCompare)
const noexcept {
return keyCode == keyCodeToCompare; }
141 static KeyPress createFromDescription (
const String& textVersion);
150 String getTextDescription()
const;
157 String getTextDescriptionWithIcons()
const;
167 bool isCurrentlyDown()
const;
174 static bool isKeyCurrentlyDown (
int keyCode);
254 #endif // JUCE_KEYPRESS_H_INCLUDED static const int pageUpKey
Definition: juce_KeyPress.h:197
static const int endKey
Definition: juce_KeyPress.h:200
static const int numberPadSubtract
Definition: juce_KeyPress.h:231
static const int numberPad2
Definition: juce_KeyPress.h:221
static const int deleteKey
Definition: juce_KeyPress.h:189
Definition: juce_KeyPress.h:37
static const int rewindKey
Definition: juce_KeyPress.h:242
#define noexcept
Definition: juce_CompilerSupport.h:141
static const int insertKey
Definition: juce_KeyPress.h:191
static const int leftKey
Definition: juce_KeyPress.h:195
static const int numberPad7
Definition: juce_KeyPress.h:226
static const int F3Key
Definition: juce_KeyPress.h:204
static const int downKey
Definition: juce_KeyPress.h:194
static const int numberPadSeparator
Definition: juce_KeyPress.h:234
Definition: juce_ModifierKeys.h:38
static const int numberPadAdd
Definition: juce_KeyPress.h:230
static const int F12Key
Definition: juce_KeyPress.h:213
static const int F8Key
Definition: juce_KeyPress.h:209
static const int F10Key
Definition: juce_KeyPress.h:211
Definition: juce_String.h:43
static const int backspaceKey
Definition: juce_KeyPress.h:190
static const int numberPad4
Definition: juce_KeyPress.h:223
static const int numberPadDecimalPoint
Definition: juce_KeyPress.h:235
static const int numberPadMultiply
Definition: juce_KeyPress.h:232
static const int F11Key
Definition: juce_KeyPress.h:212
juce_wchar getTextCharacter() const noexcept
Definition: juce_KeyPress.h:117
#define JUCE_API
Definition: juce_StandardHeader.h:139
static const int F9Key
Definition: juce_KeyPress.h:210
static const int F7Key
Definition: juce_KeyPress.h:208
static const int returnKey
Definition: juce_KeyPress.h:186
static const int numberPad6
Definition: juce_KeyPress.h:225
static const int F5Key
Definition: juce_KeyPress.h:206
static const int numberPadDelete
Definition: juce_KeyPress.h:237
static const int F13Key
Definition: juce_KeyPress.h:214
static const int tabKey
Definition: juce_KeyPress.h:187
static const int F2Key
Definition: juce_KeyPress.h:203
int getKeyCode() const noexcept
Definition: juce_KeyPress.h:104
static const int fastForwardKey
Definition: juce_KeyPress.h:241
static const int F4Key
Definition: juce_KeyPress.h:205
static const int numberPad9
Definition: juce_KeyPress.h:228
static const int homeKey
Definition: juce_KeyPress.h:199
static const int F14Key
Definition: juce_KeyPress.h:215
static const int pageDownKey
Definition: juce_KeyPress.h:198
static const int spaceKey
Definition: juce_KeyPress.h:184
static const int numberPadEquals
Definition: juce_KeyPress.h:236
static const int numberPad5
Definition: juce_KeyPress.h:224
static const int numberPad0
Definition: juce_KeyPress.h:219
static const int escapeKey
Definition: juce_KeyPress.h:185
static const int rightKey
Definition: juce_KeyPress.h:196
static const int stopKey
Definition: juce_KeyPress.h:240
bool operator==(const var &v1, const var &v2) noexcept
Definition: juce_Variant.cpp:565
static const int F1Key
Definition: juce_KeyPress.h:202
static const int upKey
Definition: juce_KeyPress.h:193
bool isValid() const noexcept
Definition: juce_KeyPress.h:97
static const int F6Key
Definition: juce_KeyPress.h:207
static const int playKey
Definition: juce_KeyPress.h:239
ModifierKeys getModifiers() const noexcept
Definition: juce_KeyPress.h:110
static const int F16Key
Definition: juce_KeyPress.h:217
#define JUCE_LEAK_DETECTOR(OwnerClass)
Definition: juce_LeakedObjectDetector.h:141
bool operator!=(const var &v1, const var &v2) noexcept
Definition: juce_Variant.cpp:566
static const int numberPadDivide
Definition: juce_KeyPress.h:233
wchar_t juce_wchar
Definition: juce_CharacterFunctions.h:49
static const int numberPad3
Definition: juce_KeyPress.h:222
bool isKeyCode(int keyCodeToCompare) const noexcept
Definition: juce_KeyPress.h:127
static const int F15Key
Definition: juce_KeyPress.h:216
static const int numberPad1
Definition: juce_KeyPress.h:220
static const int numberPad8
Definition: juce_KeyPress.h:227