struct CCL::KeyState
Overview
Mouse Button and Keyboard Modifier state. More…
#include <guievent.h> struct KeyState { // enums enum Flags; // fields unsigned int keys; // construction KeyState (unsigned int keys = 0); // methods bool isSet (int key) const; int getModifiers () const; operator const unsigned int () const; bool fromString (StringRef string); void toString (String& string, bool translated = false) const; };
Detailed Documentation
Mouse Button and Keyboard Modifier state.
<>
Methods
bool isSet (int key) const
Check if mouse button or modifier is set.
int getModifiers () const
Get modifier keys.
operator const unsigned int () const
Cast to plain integer.
bool fromString (StringRef string)
Set modifiers from string.
void toString (String& string, bool translated = false) const
Convert to Unicode string.