Enum adi_gpu_base::Input[][src]

pub enum Input {
    Resize,
    Resume,
    Pause,
    Text(char),
    Align(Align),
    Emphasis(Emphasis),
    Color(FontColor),
    Select,
    Copy,
    Cancel,
    Delete,
    Find,
    Help,
    Info,
    Back,
    Quit,
    Close,
    Open(Option<&'static str>),
    Share,
    SaveCopy,
    Undo,
    Redo,
    Cut,
    Paste,
    Print,
    Cursor(Option<(f32, f32)>),
    LeftButton(Option<bool>, Option<(f32, f32)>),
    MiddleButton(Option<bool>, Option<(f32, f32)>),
    RightButton(Option<bool>, Option<(f32, f32)>),
    Touch(Option<bool>, Option<(f32, f32)>),
    Scroll((f32, f32)Option<(f32, f32)>),
    Num1(Option<bool>),
    Num2(Option<bool>),
    Num3(Option<bool>),
    Num4(Option<bool>),
    Num5(Option<bool>),
    Num6(Option<bool>),
    Num7(Option<bool>),
    Num8(Option<bool>),
    Num9(Option<bool>),
    Num0(Option<bool>),
    Minus(Option<bool>),
    EqualSign(Option<bool>),
    Backspace(Option<bool>),
    Tab(Option<bool>),
    Q(Option<bool>),
    W(Option<bool>),
    E(Option<bool>),
    R(Option<bool>),
    T(Option<bool>),
    Y(Option<bool>),
    U(Option<bool>),
    I(Option<bool>),
    O(Option<bool>),
    P(Option<bool>),
    BracketOpen(Option<bool>),
    BracketClose(Option<bool>),
    Backslash(Option<bool>),
    Compose(Option<bool>),
    A(Option<bool>),
    S(Option<bool>),
    D(Option<bool>),
    F(Option<bool>),
    G(Option<bool>),
    H(Option<bool>),
    J(Option<bool>),
    K(Option<bool>),
    L(Option<bool>),
    Semicolon(Option<bool>),
    Apostrophe(Option<bool>),
    Enter(Option<bool>),
    LShift(Option<bool>),
    Z(Option<bool>),
    X(Option<bool>),
    C(Option<bool>),
    V(Option<bool>),
    B(Option<bool>),
    N(Option<bool>),
    M(Option<bool>),
    Comma(Option<bool>),
    Period(Option<bool>),
    Slash(Option<bool>),
    RShift(Option<bool>),
    LCtrl(Option<bool>),
    Alt(Option<bool>),
    Space(Option<bool>),
    RCtrl(Option<bool>),
    Up(Option<bool>),
    Down(Option<bool>),
    Left(Option<bool>),
    Right(Option<bool>),
    ExtBacktick(Option<bool>),
    ExtDelete(Option<bool>),
    ExtInsert(Option<bool>),
    ExtNumLock(Option<bool>),
    ExtPageUp(Option<bool>),
    ExtPageDown(Option<bool>),
    ExtHome(Option<bool>),
    ExtEnd(Option<bool>),
    ExtAsterisk(Option<bool>),
    ExtPlus(Option<bool>),
    ExtAltGr(Option<bool>),
    CMove(usizef32f32),
    CCamera(usizef32f32),
    CThrottleL(usizef32),
    CThrottleR(usizef32),
    CAccept(usizeOption<bool>),
    CCancel(usizeOption<bool>),
    CExecute(usizeOption<bool>),
    CAction(usizeOption<bool>),
    CL(usizeu8Option<bool>),
    CR(usizeu8Option<bool>),
    CMenu(usizeOption<bool>),
    CControls(usize),
    CExit(usize),
    CUp(usizeOption<bool>),
    CDown(usizeOption<bool>),
    CLeft(usizeOption<bool>),
    CRight(usizeOption<bool>),
    CMoveStick(usizeOption<bool>),
    CCamStick(usizeOption<bool>),
    CPluggedIn(usizei32),
    CUnPlugged(usizei32),
}

Input to the window, that's put into the input queue, when an event has occurred.

Variants

The window has just been resized.

The user has switched to this window (in focus).

The user has switched to a different window (out of focus).

The user has inputted text.

Keyboard Shortcut - Align

  • (CTRL-L) Align::Left
  • (CTRL-;) Align::Centered
  • (CTRL-') Align::Right
  • (CTRL-ENTER) Align::Justified

Keyboard Shortcut - Emphasis

  • (CTRL-6) Emphasis::UnderlineDC
  • (CTRL-7) Emphasis::Overline
  • (CTRL-8) Emphasis::Bold
  • (CTRL-9) Emphasis::InvertColor
  • (CTRL-0) Emphasis::None
  • (CTRL-MINUS) Emphasis::StrikeOut
  • (CTRL-EQUALS) Emphasis::UnderlineX2
  • (CTRL-U) Emphasis::Underline
  • (CTRL-I) Emphasis::Italic

Keyboard Shortcut - Text Color

Keyboard Shortcut - Select All (CTRL-A)

Keyboard Shortcut - Copy (CTRL-C)

Keyboard Shortcut - Cancel (ALT-C)

Keyboard Shortcut - Delete (SHIFT-BACKSPACE)

Keyboard Shortcut - Find (CTRL-F)

Keyboard Shortcut - Help

Keyboard Shortcut - Info

Request to exit the current screen - Back key / (Esc)

Request to exit the app - 'X' button on app's window / (Ctrl-Q)

Keyboard Shortcut - Close (Ctrl-W)

Keyboard Shortcut - Open (Ctrl-O)

Keyboard Shortcut - Share (Ctrl-S)

Keyboard Shortcut - Save Copy (Ctrl-Shift-S)

Keyboard Shortcut - Undo (Ctrl-Z)

Keyboard Shortcut - Redo (Ctrl-Shift-Z or Ctrl-Y)

Keyboard Shortcut - Cut (Ctrl-X)

Keyboard Shortcut - Paste (Ctrl-V)

Keyboard Shortcut - Print (Ctrl-P)

Cursor moved

Left Click (Some(Just Clicked) = Pressed, Cursor XY)

Middle Click (or SHIFT-Click) (Some(Just Clicked) = Pressed, Cursor XY)

Right Click (or CTRL-Click) (Some(Just Clicked) = Pressed, Cursor XY)

Touch (on a touchscreen) (Some(Just Clicked) = Pressed, Cursor XY)

Touchpad / Mousewheel scroll (x, y) - (-1, -1) is up / left, (1, 1) is down / right (Scroll XY, Cursor XY)

1

2

3

4

5

6

7

8

9

0

-

=

Backspace

Tab

Q

W

E

R

T

Y

U

I

O

P

{

}

Backslash

Compose (CAPS LOCK)

A

S

D

F

G

H

J

K

L

;

'

Enter

Left Shift

Z

X

C

V

B

N

M

,

.

/

Right Shift

Left CTRL

Alt (Left)

Space

Right Control

Up Arrow Key

Down Arrow Key

Left Arrow Key

Right Arrow Key

`

Delete

Insert

NumLock

Page Up

Page Down

Home

End

*

+

AltGr (Right Alt)

Controller: Main joystick movement.

Controller: Camera / C joystick movement.

Controller: Left Throttle movement.

Controller: Right Throttle movement.

Controller: Accept (A Button / Left Top Button - Missle / Circle)

Controller: Cancel (B Button / Side Button / Cross)

Controller: Execute (X Button / Trigger / Triangle)

Controller: Action (Y Button / Right Top Button / Square)

Controller: Left Button (0: L Trigger, 1: LZ / L Bumper). 0 is farthest away from user, incrementing as buttons get closer.

Controller: Right Button (0: R Trigger, 1: Z / RZ / R Bumper). 0 is farthest away from user, incrementing as buttons get closer.

Controller: Pause Menu (Start Button)

Controller: Show Controls (Guide on XBox, Select on PlayStation). Use as alternative for Menu -> "Controls".

Controller: Exit This Screen (Back on XBox). Use as alternative for Menu -> "Quit" or Cancel, depending on situation.

Controller: HAT/DPAD Up Button

Controller: HAT/DPAD Down Button

Controller: Hat/D-Pad left button

Controller: Hat/D-Pad right button.

Controller: Movement stick Push

Controller: Camera stick Push

Controller: Device Plugged-In

Controller: Device Un-Plugged

Trait Implementations

impl Display for Input
[src]

Formats the value using the given formatter. Read more

impl Clone for Input
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Input
[src]

impl PartialEq<Input> for Input
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Input

impl Sync for Input