Documentation
¶
Overview ¶
Package InputEventWithModifiers provides methods for working with InputEventWithModifiers object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AltPressed() bool
- func (self Instance) AsInputEvent() InputEvent.Instance
- func (self Instance) AsInputEventFromWindow() InputEventFromWindow.Instance
- func (self Instance) AsInputEventWithModifiers() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) CommandOrControlAutoremap() bool
- func (self Instance) CtrlPressed() bool
- func (self Instance) GetModifiersMask() KeyModifierMask
- func (self Instance) IsCommandOrControlPressed() bool
- func (self Instance) MetaPressed() bool
- func (self Instance) SetAltPressed(value bool)
- func (self Instance) SetCommandOrControlAutoremap(value bool)
- func (self Instance) SetCtrlPressed(value bool)
- func (self Instance) SetMetaPressed(value bool)
- func (self Instance) SetShiftPressed(value bool)
- func (self Instance) ShiftPressed() bool
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
- type KeyModifierMask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
type Instance [1]gdclass.InputEventWithModifiers
Stores information about mouse, keyboard, and touch gesture input events. This includes information about which modifier keys are pressed, such as [kbd]Shift[/kbd] or [kbd]Alt[/kbd]. See [method Node._input].
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AltPressed ¶
func (Instance) AsInputEvent ¶
func (self Instance) AsInputEvent() InputEvent.Instance
func (Instance) AsInputEventFromWindow ¶
func (self Instance) AsInputEventFromWindow() InputEventFromWindow.Instance
func (Instance) AsInputEventWithModifiers ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) CommandOrControlAutoremap ¶
func (Instance) CtrlPressed ¶
func (Instance) GetModifiersMask ¶
func (self Instance) GetModifiersMask() KeyModifierMask
Returns the keycode combination of modifier keys.
func (Instance) IsCommandOrControlPressed ¶
On macOS, returns [code]true[/code] if [kbd]Meta[/kbd] ([kbd]Cmd[/kbd]) is pressed. On other platforms, returns [code]true[/code] if [kbd]Ctrl[/kbd] is pressed.
func (Instance) MetaPressed ¶
func (Instance) SetAltPressed ¶
func (Instance) SetCommandOrControlAutoremap ¶
func (Instance) SetCtrlPressed ¶
func (Instance) SetMetaPressed ¶
func (Instance) SetShiftPressed ¶
func (Instance) ShiftPressed ¶
func (*Instance) UnsafePointer ¶
type KeyModifierMask ¶
type KeyModifierMask int
const ( /*Key Code mask.*/ KeyCodeMask KeyModifierMask = 8388607 /*Modifier key mask.*/ KeyModifierMaskDefault KeyModifierMask = 532676608 /*Automatically remapped to [constant KEY_META] on macOS and [constant KEY_CTRL] on other platforms, this mask is never set in the actual events, and should be used for key mapping only.*/ KeyMaskCmdOrCtrl KeyModifierMask = 16777216 /*Shift key mask.*/ KeyMaskShift KeyModifierMask = 33554432 /*Alt or Option (on macOS) key mask.*/ KeyMaskAlt KeyModifierMask = 67108864 /*Command (on macOS) or Meta/Windows key mask.*/ KeyMaskMeta KeyModifierMask = 134217728 /*Control key mask.*/ KeyMaskCtrl KeyModifierMask = 268435456 /*Keypad key mask.*/ KeyMaskKpad KeyModifierMask = 536870912 /*Group Switch key mask.*/ KeyMaskGroupSwitch KeyModifierMask = 1073741824 )