137 int insertIndex = -1);
142 void resetToDefaultMappings();
147 void resetToDefaultMapping (
CommandID commandID);
150 void clearAllKeyPresses();
153 void clearAllKeyPresses (
CommandID commandID);
159 void removeKeyPress (
CommandID commandID,
int keyPressIndex);
162 void removeKeyPress (
const KeyPress& keypress);
165 bool containsMapping (
CommandID commandID,
const KeyPress& keyPress)
const noexcept;
189 bool restoreFromXml (
const XmlElement& xmlVersion);
206 std::unique_ptr<XmlElement> createXml (
bool saveDifferencesFromDefaultSet)
const;
212 bool keyStateChanged (
bool isKeyDown,
Component*)
override;
214 void globalFocusChanged (
Component*)
override;
238 const int millisecsSinceKeyPressed,
Component* originator)
const;
#define noexcept
Definition DistrhoDefines.h:72
Definition juce_ApplicationCommandManager.h:88
Definition juce_Array.h:56
ChangeBroadcaster() noexcept
Definition juce_ChangeBroadcaster.cpp:26
Definition juce_Component.h:36
Definition juce_Desktop.h:39
Definition juce_KeyListener.h:41
Definition juce_KeyPress.h:40
ApplicationCommandManager & commandManager
Definition juce_KeyPressMappingSet.h:218
ApplicationCommandManager & getCommandManager() const noexcept
Definition juce_KeyPressMappingSet.h:113
OwnedArray< KeyPressTime > keysDown
Definition juce_KeyPressMappingSet.h:235
KeyPressMappingSet(ApplicationCommandManager &)
Definition juce_KeyPressMappingSet.cpp:29
void invokeCommand(const CommandID, const KeyPress &, const bool isKeyDown, const int millisecsSinceKeyPressed, Component *originator) const
Definition juce_KeyPressMappingSet.cpp:195
OwnedArray< CommandMapping > mappings
Definition juce_KeyPressMappingSet.h:227
Definition juce_OwnedArray.h:51
Definition juce_XmlElement.h:83
#define JUCE_LEAK_DETECTOR(OwnerClass)
Definition juce_LeakedObjectDetector.h:138
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31
unsigned int uint32
Definition juce_MathsFunctions.h:45
int CommandID
Definition juce_ApplicationCommandID.h:37
Definition juce_KeyPressMappingSet.h:221
bool wantsKeyUpDownCallbacks
Definition juce_KeyPressMappingSet.h:224
CommandID commandID
Definition juce_KeyPressMappingSet.h:222
Array< KeyPress > keypresses
Definition juce_KeyPressMappingSet.h:223
Definition juce_KeyPressMappingSet.h:230
KeyPress key
Definition juce_KeyPressMappingSet.h:231
uint32 timeWhenPressed
Definition juce_KeyPressMappingSet.h:232
#define const
Definition zconf.h:137