• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Inferno
    • CollisionMode
    • DrawMode
    • Game
    • Game.OnResizeEventArgs
    • GameState
    • GameState.StateOnDrawEventArgs
    • GameWindow
    • Instance
    • MathHelper
    • Matrix
    • Point
    • Rectangle
    • Settings
    • SpatialMode
    • UpdateMode
    • Vector2
    • Vector3
    • Vector4
  • Inferno.Audio
    • AudioDevice
    • Sound
  • Inferno.Content
    • ContentLoader
  • Inferno.Formats.Audio
    • WaveFormat
  • Inferno.Formats.Graphics.Text
    • FontFormat
  • Inferno.Graphics
    • Camera
    • Color
    • GraphicsDevice
    • PlatformType
    • Renderable
    • RenderableType
    • Renderer
    • RenderSortMode
    • RenderTarget
    • Shader
    • ShaderLanguage
    • ShaderType
    • Sprite
    • Texture2D
    • Tileset
  • Inferno.Graphics.Text
    • Font
    • FontBuilder
  • Inferno.Input
    • ButtonState
    • Key
    • Keyboard
    • Keyboard.KeyEventArgs
    • KeyboardState
    • KeyState
    • Mouse
    • MouseState
  • Inferno.Tiled
    • RenderOrder
    • TiledLayer
    • TiledLayerChunk
    • TiledLoader
    • TiledMap
    • TiledMapOrientation
    • TiledObject
    • TiledObjectLayer
    • TiledVersion
  • Inferno.UI
    • MessageBox
    • MessageBoxType
    • UserInterface
  • Inferno.UI.Controls
    • Button
    • Control
    • Control.ControlClickedEvent
    • Control.ControlHoveredEvent
    • Control.TextChangedEventArgs
    • ControlState
    • Cursor
    • Label

Struct KeyboardState

The state of a keyboard

Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Inferno.Input
Assembly: Inferno.Desktop.dll
Syntax
public struct KeyboardState

Constructors

| Improve this Doc View Source

KeyboardState(List<Key>, Boolean, Boolean)

Declaration
public KeyboardState(List<Key> keys, bool capsLock = false, bool numLock = false)
Parameters
Type Name Description
System.Collections.Generic.List<Key> keys
System.Boolean capsLock
System.Boolean numLock

Properties

| Improve this Doc View Source

CapsLock

Declaration
public bool CapsLock { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Item[Key]

Declaration
public KeyState this[Key key] { get; }
Parameters
Type Name Description
Key key
Property Value
Type Description
KeyState
| Improve this Doc View Source

NumLock

Declaration
public bool NumLock { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

IsKeyDown(Key)

Declaration
public bool IsKeyDown(Key key)
Parameters
Type Name Description
Key key
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsKeyUp(Key)

Declaration
public bool IsKeyUp(Key key)
Parameters
Type Name Description
Key key
Returns
Type Description
System.Boolean

Operators

| Improve this Doc View Source

Equality(KeyboardState, KeyboardState)

Declaration
public static bool operator ==(KeyboardState a, KeyboardState b)
Parameters
Type Name Description
KeyboardState a
KeyboardState b
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Inequality(KeyboardState, KeyboardState)

Declaration
public static bool operator !=(KeyboardState a, KeyboardState b)
Parameters
Type Name Description
KeyboardState a
KeyboardState b
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX