enum ImGui::ImGuiKey

Overview

enum ImGuiKey

Defined in:

types.cr

Enum Members

None = 0
Tab = 512

== ImGuiKey_NamedKey_BEGIN

LeftArrow = 513
RightArrow = 514
UpArrow = 515
DownArrow = 516
PageUp = 517
PageDown = 518
Home = 519
End = 520
Insert = 521
Delete = 522
Backspace = 523
Space = 524
Enter = 525
Escape = 526
LeftCtrl = 527
LeftShift = 528
LeftAlt = 529
LeftSuper = 530
RightCtrl = 531
RightShift = 532
RightAlt = 533
RightSuper = 534
Menu = 535
Num0 = 536
Num1 = 537
Num2 = 538
Num3 = 539
Num4 = 540
Num5 = 541
Num6 = 542
Num7 = 543
Num8 = 544
Num9 = 545
A = 546
B = 547
C = 548
D = 549
E = 550
F = 551
G = 552
H = 553
I = 554
J = 555
K = 556
L = 557
M = 558
N = 559
O = 560
P = 561
Q = 562
R = 563
S = 564
T = 565
U = 566
V = 567
W = 568
X = 569
Y = 570
Z = 571
F1 = 572
F2 = 573
F3 = 574
F4 = 575
F5 = 576
F6 = 577
F7 = 578
F8 = 579
F9 = 580
F10 = 581
F11 = 582
F12 = 583
F13 = 584
F14 = 585
F15 = 586
F16 = 587
F17 = 588
F18 = 589
F19 = 590
F20 = 591
F21 = 592
F22 = 593
F23 = 594
F24 = 595
Apostrophe = 596

'

Comma = 597

,

Minus = 598
Period = 599

.

Slash = 600

/

Semicolon = 601

;

Equal = 602

=

LeftBracket = 603

[

Backslash = 604

\ (this text inhibit multiline comment caused by backslash)

RightBracket = 605

]

GraveAccent = 606

`

CapsLock = 607
ScrollLock = 608
NumLock = 609
PrintScreen = 610
Pause = 611
Keypad0 = 612
Keypad1 = 613
Keypad2 = 614
Keypad3 = 615
Keypad4 = 616
Keypad5 = 617
Keypad6 = 618
Keypad7 = 619
Keypad8 = 620
Keypad9 = 621
KeypadDecimal = 622
KeypadDivide = 623
KeypadMultiply = 624
KeypadSubtract = 625
KeypadAdd = 626
KeypadEnter = 627
KeypadEqual = 628
AppBack = 629

Available on some keyboard/mouses. Often referred as "Browser Back"

AppForward = 630
GamepadStart = 631

Menu (Xbox) + (Switch) Start/Options (PS)

GamepadBack = 632

View (Xbox) - (Switch) Share (PS)

GamepadFaceLeft = 633

X (Xbox) Y (Switch) Square (PS) Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows)

GamepadFaceRight = 634

B (Xbox) A (Switch) Circle (PS) Cancel / Close / Exit

GamepadFaceUp = 635

Y (Xbox) X (Switch) Triangle (PS) Text Input / On-screen Keyboard

GamepadFaceDown = 636

A (Xbox) B (Switch) Cross (PS) Activate / Open / Toggle / Tweak

GamepadDpadLeft = 637

D-pad Left Move / Tweak / Resize Window (in Windowing mode)

GamepadDpadRight = 638

D-pad Right Move / Tweak / Resize Window (in Windowing mode)

GamepadDpadUp = 639

D-pad Up Move / Tweak / Resize Window (in Windowing mode)

GamepadDpadDown = 640

D-pad Down Move / Tweak / Resize Window (in Windowing mode)

GamepadL1 = 641

L Bumper (Xbox) L (Switch) L1 (PS) Tweak Slower / Focus Previous (in Windowing mode)

GamepadR1 = 642

R Bumper (Xbox) R (Switch) R1 (PS) Tweak Faster / Focus Next (in Windowing mode)

GamepadL2 = 643

L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog]

GamepadR2 = 644

R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog]

GamepadL3 = 645

L Stick (Xbox) L3 (Switch) L3 (PS)

GamepadR3 = 646

R Stick (Xbox) R3 (Switch) R3 (PS)

GamepadLStickLeft = 647

[Analog] Move Window (in Windowing mode)

GamepadLStickRight = 648

[Analog] Move Window (in Windowing mode)

GamepadLStickUp = 649

[Analog] Move Window (in Windowing mode)

GamepadLStickDown = 650

[Analog] Move Window (in Windowing mode)

GamepadRStickLeft = 651

[Analog]

GamepadRStickRight = 652

[Analog]

GamepadRStickUp = 653

[Analog]

GamepadRStickDown = 654

[Analog]

MouseLeft = 655
MouseRight = 656
MouseMiddle = 657
MouseX1 = 658
MouseX2 = 659
MouseWheelX = 660
MouseWheelY = 661
ReservedForModCtrl = 662
ReservedForModShift = 663
ReservedForModAlt = 664
ReservedForModSuper = 665
COUNT = 666
Mod_None = 0
Mod_Ctrl = 4096

Ctrl

Mod_Shift = 8192

Shift

Mod_Alt = 16384

Option/Menu

Mod_Super = 32768

Cmd/Super/Windows

Mod_Shortcut = 2048

Alias for Ctrl (non-macOS) or Super (macOS).

Mod_Mask_ = 63488

5-bits

Instance Method Summary

Instance Method Detail

def a? #

[View source]
def apostrophe? #

[View source]
def app_back? #

[View source]
def app_forward? #

[View source]
def b? #

[View source]
def backslash? #

[View source]
def backspace? #

[View source]
def c? #

[View source]
def caps_lock? #

[View source]
def comma? #

[View source]
def count? #

[View source]
def d? #

[View source]
def delete? #

[View source]
def down_arrow? #

[View source]
def e? #

[View source]
def end? #

[View source]
def enter? #

[View source]
def equal? #

[View source]
def escape? #

[View source]
def f10? #

[View source]
def f11? #

[View source]
def f12? #

[View source]
def f13? #

[View source]
def f14? #

[View source]
def f15? #

[View source]
def f16? #

[View source]
def f17? #

[View source]
def f18? #

[View source]
def f19? #

[View source]
def f1? #

[View source]
def f20? #

[View source]
def f21? #

[View source]
def f22? #

[View source]
def f23? #

[View source]
def f24? #

[View source]
def f2? #

[View source]
def f3? #

[View source]
def f4? #

[View source]
def f5? #

[View source]
def f6? #

[View source]
def f7? #

[View source]
def f8? #

[View source]
def f9? #

[View source]
def f? #

[View source]
def g? #

[View source]
def gamepad_back? #

[View source]
def gamepad_dpad_down? #

[View source]
def gamepad_dpad_left? #

[View source]
def gamepad_dpad_right? #

[View source]
def gamepad_dpad_up? #

[View source]
def gamepad_face_down? #

[View source]
def gamepad_face_left? #

[View source]
def gamepad_face_right? #

[View source]
def gamepad_face_up? #

[View source]
def gamepad_l1? #

[View source]
def gamepad_l2? #

[View source]
def gamepad_l3? #

[View source]
def gamepad_l_stick_down? #

[View source]
def gamepad_l_stick_left? #

[View source]
def gamepad_l_stick_right? #

[View source]
def gamepad_l_stick_up? #

[View source]
def gamepad_r1? #

[View source]
def gamepad_r2? #

[View source]
def gamepad_r3? #

[View source]
def gamepad_r_stick_down? #

[View source]
def gamepad_r_stick_left? #

[View source]
def gamepad_r_stick_right? #

[View source]
def gamepad_r_stick_up? #

[View source]
def gamepad_start? #

[View source]
def grave_accent? #

[View source]
def h? #

[View source]
def home? #

[View source]
def i? #

[View source]
def insert? #

[View source]
def j? #

[View source]
def k? #

[View source]
def keypad0? #

[View source]
def keypad1? #

[View source]
def keypad2? #

[View source]
def keypad3? #

[View source]
def keypad4? #

[View source]
def keypad5? #

[View source]
def keypad6? #

[View source]
def keypad7? #

[View source]
def keypad8? #

[View source]
def keypad9? #

[View source]
def keypad_add? #

[View source]
def keypad_decimal? #

[View source]
def keypad_divide? #

[View source]
def keypad_enter? #

[View source]
def keypad_equal? #

[View source]
def keypad_multiply? #

[View source]
def keypad_subtract? #

[View source]
def l? #

[View source]
def left_alt? #

[View source]
def left_arrow? #

[View source]
def left_bracket? #

[View source]
def left_ctrl? #

[View source]
def left_shift? #

[View source]
def left_super? #

[View source]
def m? #

[View source]
def menu? #

[View source]
def minus? #

[View source]
def mod_alt? #

[View source]
def mod_ctrl? #

[View source]
def mod_mask_? #

[View source]
def mod_none? #

[View source]
def mod_shift? #

[View source]
def mod_shortcut? #

[View source]
def mod_super? #

[View source]
def mouse_left? #

[View source]
def mouse_middle? #

[View source]
def mouse_right? #

[View source]
def mouse_wheel_x? #

[View source]
def mouse_wheel_y? #

[View source]
def mouse_x1? #

[View source]
def mouse_x2? #

[View source]
def n? #

[View source]
def none? #

[View source]
def num0? #

[View source]
def num1? #

[View source]
def num2? #

[View source]
def num3? #

[View source]
def num4? #

[View source]
def num5? #

[View source]
def num6? #

[View source]
def num7? #

[View source]
def num8? #

[View source]
def num9? #

[View source]
def num_lock? #

[View source]
def o? #

[View source]
def p? #

[View source]
def page_down? #

[View source]
def page_up? #

[View source]
def pause? #

[View source]
def period? #

[View source]
def print_screen? #

[View source]
def q? #

[View source]
def r? #

[View source]
def reserved_for_mod_alt? #

[View source]
def reserved_for_mod_ctrl? #

[View source]
def reserved_for_mod_shift? #

[View source]
def reserved_for_mod_super? #

[View source]
def right_alt? #

[View source]
def right_arrow? #

[View source]
def right_bracket? #

[View source]
def right_ctrl? #

[View source]
def right_shift? #

[View source]
def right_super? #

[View source]
def s? #

[View source]
def scroll_lock? #

[View source]
def semicolon? #

[View source]
def slash? #

[View source]
def space? #

[View source]
def t? #

[View source]
def tab? #

[View source]
def u? #

[View source]
def up_arrow? #

[View source]
def v? #

[View source]
def w? #

[View source]
def x? #

[View source]
def y? #

[View source]
def z? #

[View source]