Table of Contents

Class CharacterEventArgs

Namespace
BSGameLib.Game.Input
Assembly
BSGameLib.Game.dll

A typed character, from CharEntered. The flags come from the bits of Param, which TextInput does not supply, so they are false there.

public class CharacterEventArgs : EventArgs
Inheritance
CharacterEventArgs
Inherited Members

Constructors

CharacterEventArgs(char, int)

Creates the event data for character, with the raw key-message value lParam.

public CharacterEventArgs(char character, int lParam)

Parameters

character char
lParam int

Properties

AltPressed

Bit 29 of Param: whether Alt was held.

public bool AltPressed { get; }

Property Value

bool

Character

The character typed, as a UTF-16 code unit.

public char Character { get; }

Property Value

char

ExtendedKey

Bit 24 of Param: whether the key is an extended key.

public bool ExtendedKey { get; }

Property Value

bool

Param

The raw key-message value that the flags below are read from.

public int Param { get; }

Property Value

int

PreviousState

Bit 30 of Param: whether the key was already down before this message.

public bool PreviousState { get; }

Property Value

bool

TransitionState

Bit 31 of Param: whether the key is being released.

public bool TransitionState { get; }

Property Value

bool