25 #ifndef JUCE_KEYPRESSMAPPINGSET_H_INCLUDED 26 #define JUCE_KEYPRESSMAPPINGSET_H_INCLUDED 135 int insertIndex = -1);
140 void resetToDefaultMappings();
145 void resetToDefaultMapping (
CommandID commandID);
148 void clearAllKeyPresses();
151 void clearAllKeyPresses (
CommandID commandID);
157 void removeKeyPress (
CommandID commandID,
int keyPressIndex);
160 void removeKeyPress (
const KeyPress& keypress);
187 bool restoreFromXml (
const XmlElement& xmlVersion);
206 XmlElement* createXml (
bool saveDifferencesFromDefaultSet)
const;
220 struct CommandMapping
224 bool wantsKeyUpDownCallbacks;
238 const int millisecsSinceKeyPressed,
Component* originator)
const;
245 #endif // JUCE_KEYPRESSMAPPINGSET_H_INCLUDED Definition: juce_ApplicationCommandManager.h:84
ApplicationCommandManager & getCommandManager() const noexcept
Definition: juce_KeyPressMappingSet.h:111
Definition: juce_KeyPress.h:37
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_Desktop.h:36
Definition: juce_ChangeBroadcaster.h:35
#define JUCE_API
Definition: juce_StandardHeader.h:139
virtual bool keyStateChanged(bool isKeyDown, Component *originatingComponent)
Definition: juce_KeyListener.cpp:25
Definition: juce_XmlElement.h:142
virtual bool keyPressed(const KeyPress &key, Component *originatingComponent)=0
unsigned int uint32
Definition: juce_MathsFunctions.h:51
Definition: juce_Component.h:33
Definition: juce_KeyPressMappingSet.h:84
Definition: juce_KeyListener.h:38
Definition: juce_OwnedArray.h:55
#define JUCE_LEAK_DETECTOR(OwnerClass)
Definition: juce_LeakedObjectDetector.h:141
virtual void globalFocusChanged(Component *focusedComponent)=0