LuciadCPillar C# 2023.1.04
Luciad.Input.KeyCode Struct Reference

Represents a key in the controller API. More...

Inheritance diagram for Luciad.Input.KeyCode:

Public Member Functions

 KeyCode (uint index)
 Creates a new KeyCode with the given index. More...
 
bool Equals (KeyCode other)
 
override bool Equals (object other)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator!= (KeyCode lhs, KeyCode rhs)
 
static bool operator== (KeyCode lhs, KeyCode rhs)
 

Properties

static KeyCode A = new KeyCode(65) [get]
 
static KeyCode Asterisk = new KeyCode(42) [get]
 
static KeyCode B = new KeyCode(66) [get]
 
static KeyCode Backspace = new KeyCode(8) [get]
 
static KeyCode C = new KeyCode(67) [get]
 
static KeyCode D = new KeyCode(68) [get]
 
static KeyCode Down = new KeyCode(205) [get]
 
static KeyCode E = new KeyCode(69) [get]
 
static KeyCode Eight = new KeyCode(56) [get]
 
static KeyCode End = new KeyCode(201) [get]
 
static KeyCode Escape = new KeyCode(27) [get]
 
static KeyCode F = new KeyCode(70) [get]
 
static KeyCode Five = new KeyCode(53) [get]
 
static KeyCode Four = new KeyCode(52) [get]
 
static KeyCode G = new KeyCode(71) [get]
 
static KeyCode H = new KeyCode(72) [get]
 
static KeyCode Home = new KeyCode(200) [get]
 
static KeyCode I = new KeyCode(73) [get]
 
uint Index [get]
 
static KeyCode J = new KeyCode(74) [get]
 
static KeyCode K = new KeyCode(75) [get]
 
static KeyCode L = new KeyCode(76) [get]
 
static KeyCode Left = new KeyCode(202) [get]
 
static KeyCode M = new KeyCode(77) [get]
 
static KeyCode Minus = new KeyCode(45) [get]
 
static KeyCode N = new KeyCode(78) [get]
 
static KeyCode Nine = new KeyCode(57) [get]
 
static KeyCode O = new KeyCode(79) [get]
 
static KeyCode One = new KeyCode(49) [get]
 
static KeyCode P = new KeyCode(80) [get]
 
static KeyCode PageDown = new KeyCode(207) [get]
 
static KeyCode PageUp = new KeyCode(206) [get]
 
static KeyCode Plus = new KeyCode(43) [get]
 
static KeyCode Q = new KeyCode(81) [get]
 
static KeyCode R = new KeyCode(82) [get]
 
static KeyCode Right = new KeyCode(204) [get]
 
static KeyCode S = new KeyCode(83) [get]
 
static KeyCode Seven = new KeyCode(55) [get]
 
static KeyCode Six = new KeyCode(54) [get]
 
static KeyCode Slash = new KeyCode(47) [get]
 
static KeyCode Space = new KeyCode(32) [get]
 
static KeyCode T = new KeyCode(84) [get]
 
static KeyCode Three = new KeyCode(51) [get]
 
static KeyCode Two = new KeyCode(50) [get]
 
static KeyCode U = new KeyCode(85) [get]
 
static KeyCode Unknown = new KeyCode(0) [get]
 
static KeyCode Up = new KeyCode(203) [get]
 
static KeyCode V = new KeyCode(86) [get]
 
static KeyCode W = new KeyCode(87) [get]
 
static KeyCode X = new KeyCode(88) [get]
 
static KeyCode Y = new KeyCode(89) [get]
 
static KeyCode Z = new KeyCode(90) [get]
 
static KeyCode Zero = new KeyCode(48) [get]
 

Detailed Description

Represents a key in the controller API.

luciad::KeyCode::KeyCode for the key mapping.

luciad::ModifierKeys for the available modifiers to use in conjunction with this class.

2020.1

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::KeyCode.

Constructor & Destructor Documentation

◆ KeyCode()

Luciad.Input.KeyCode.KeyCode ( uint  index)
inline

Creates a new KeyCode with the given index.

The key button index maps on to keys as follows: 0 => Unknown 8 => Backspace 27 => Escape 32 => Space 42 => Asterisk 43 => Plus 45 => Minus 47 => Slash 48 => 0 49 => 1 ... 57 => 9 65 => A 66 => B ... 90 => Z 200 => Home 201 => End 202 => Left 203 => Up 204 => Right 205 => Down 206 => Page-Up 207 => Page-Down

If needed other indexes can be used if out of those values. For example if you want to handle unicode characters. Please use index values greater than 1024 for custom key codes.

index

the mouse button index.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::KeyCode::KeyCode.

Member Function Documentation

◆ Equals() [1/2]

bool Luciad.Input.KeyCode.Equals ( KeyCode  other)
inline

◆ Equals() [2/2]

override bool Luciad.Input.KeyCode.Equals ( object  other)
inline

◆ GetHashCode()

override int Luciad.Input.KeyCode.GetHashCode ( )
inline

◆ operator!=()

static bool Luciad.Input.KeyCode.operator!= ( KeyCode  lhs,
KeyCode  rhs 
)
inlinestatic

◆ operator==()

static bool Luciad.Input.KeyCode.operator== ( KeyCode  lhs,
KeyCode  rhs 
)
inlinestatic

Property Documentation

◆ A

KeyCode Luciad.Input.KeyCode.A = new KeyCode(65)
staticget

◆ Asterisk

KeyCode Luciad.Input.KeyCode.Asterisk = new KeyCode(42)
staticget

◆ B

KeyCode Luciad.Input.KeyCode.B = new KeyCode(66)
staticget

◆ Backspace

KeyCode Luciad.Input.KeyCode.Backspace = new KeyCode(8)
staticget

◆ C

KeyCode Luciad.Input.KeyCode.C = new KeyCode(67)
staticget

◆ D

KeyCode Luciad.Input.KeyCode.D = new KeyCode(68)
staticget

◆ Down

KeyCode Luciad.Input.KeyCode.Down = new KeyCode(205)
staticget

◆ E

KeyCode Luciad.Input.KeyCode.E = new KeyCode(69)
staticget

◆ Eight

KeyCode Luciad.Input.KeyCode.Eight = new KeyCode(56)
staticget

◆ End

KeyCode Luciad.Input.KeyCode.End = new KeyCode(201)
staticget

◆ Escape

KeyCode Luciad.Input.KeyCode.Escape = new KeyCode(27)
staticget

◆ F

KeyCode Luciad.Input.KeyCode.F = new KeyCode(70)
staticget

◆ Five

KeyCode Luciad.Input.KeyCode.Five = new KeyCode(53)
staticget

◆ Four

KeyCode Luciad.Input.KeyCode.Four = new KeyCode(52)
staticget

◆ G

KeyCode Luciad.Input.KeyCode.G = new KeyCode(71)
staticget

◆ H

KeyCode Luciad.Input.KeyCode.H = new KeyCode(72)
staticget

◆ Home

KeyCode Luciad.Input.KeyCode.Home = new KeyCode(200)
staticget

◆ I

KeyCode Luciad.Input.KeyCode.I = new KeyCode(73)
staticget

◆ Index

uint Luciad.Input.KeyCode.Index
get

◆ J

KeyCode Luciad.Input.KeyCode.J = new KeyCode(74)
staticget

◆ K

KeyCode Luciad.Input.KeyCode.K = new KeyCode(75)
staticget

◆ L

KeyCode Luciad.Input.KeyCode.L = new KeyCode(76)
staticget

◆ Left

KeyCode Luciad.Input.KeyCode.Left = new KeyCode(202)
staticget

◆ M

KeyCode Luciad.Input.KeyCode.M = new KeyCode(77)
staticget

◆ Minus

KeyCode Luciad.Input.KeyCode.Minus = new KeyCode(45)
staticget

◆ N

KeyCode Luciad.Input.KeyCode.N = new KeyCode(78)
staticget

◆ Nine

KeyCode Luciad.Input.KeyCode.Nine = new KeyCode(57)
staticget

◆ O

KeyCode Luciad.Input.KeyCode.O = new KeyCode(79)
staticget

◆ One

KeyCode Luciad.Input.KeyCode.One = new KeyCode(49)
staticget

◆ P

KeyCode Luciad.Input.KeyCode.P = new KeyCode(80)
staticget

◆ PageDown

KeyCode Luciad.Input.KeyCode.PageDown = new KeyCode(207)
staticget

◆ PageUp

KeyCode Luciad.Input.KeyCode.PageUp = new KeyCode(206)
staticget

◆ Plus

KeyCode Luciad.Input.KeyCode.Plus = new KeyCode(43)
staticget

◆ Q

KeyCode Luciad.Input.KeyCode.Q = new KeyCode(81)
staticget

◆ R

KeyCode Luciad.Input.KeyCode.R = new KeyCode(82)
staticget

◆ Right

KeyCode Luciad.Input.KeyCode.Right = new KeyCode(204)
staticget

◆ S

KeyCode Luciad.Input.KeyCode.S = new KeyCode(83)
staticget

◆ Seven

KeyCode Luciad.Input.KeyCode.Seven = new KeyCode(55)
staticget

◆ Six

KeyCode Luciad.Input.KeyCode.Six = new KeyCode(54)
staticget

◆ Slash

KeyCode Luciad.Input.KeyCode.Slash = new KeyCode(47)
staticget

◆ Space

KeyCode Luciad.Input.KeyCode.Space = new KeyCode(32)
staticget

◆ T

KeyCode Luciad.Input.KeyCode.T = new KeyCode(84)
staticget

◆ Three

KeyCode Luciad.Input.KeyCode.Three = new KeyCode(51)
staticget

◆ Two

KeyCode Luciad.Input.KeyCode.Two = new KeyCode(50)
staticget

◆ U

KeyCode Luciad.Input.KeyCode.U = new KeyCode(85)
staticget

◆ Unknown

KeyCode Luciad.Input.KeyCode.Unknown = new KeyCode(0)
staticget

◆ Up

KeyCode Luciad.Input.KeyCode.Up = new KeyCode(203)
staticget

◆ V

KeyCode Luciad.Input.KeyCode.V = new KeyCode(86)
staticget

◆ W

KeyCode Luciad.Input.KeyCode.W = new KeyCode(87)
staticget

◆ X

KeyCode Luciad.Input.KeyCode.X = new KeyCode(88)
staticget

◆ Y

KeyCode Luciad.Input.KeyCode.Y = new KeyCode(89)
staticget

◆ Z

KeyCode Luciad.Input.KeyCode.Z = new KeyCode(90)
staticget

◆ Zero

KeyCode Luciad.Input.KeyCode.Zero = new KeyCode(48)
staticget