Table of Contents

Class GameEventsExtensions

Namespace
SkyrimForge
Assembly
SkyrimForge.Game.dll

Provides extension members for IGameEvents.

public static class GameEventsExtensions
Inheritance
GameEventsExtensions
Inherited Members

Methods

OnKeyDown(IGameEvents, Key)

Returns an event raised once as key goes down.

public static IGameEvent<InputEventArgs> OnKeyDown(this IGameEvents events, BSKeyboardDevice.Keys.Key key)

Parameters

events IGameEvents
key BSKeyboardDevice.Keys.Key

Returns

IGameEvent<InputEventArgs>

Remarks

Raised mostly on a worker thread, so a handler that changes the game or calls a member documented as called on the game's thread first awaits WaitForGameThreadAsync(IUtility, CancellationToken).

get_OnPlayerActivate(IGameEvents)

An event raised when the player activates a reference.

public static IGameEvent<ActivateEventArgs> get_OnPlayerActivate(IGameEvents events)

Parameters

events IGameEvents

Returns

IGameEvent<ActivateEventArgs>

Remarks

Raised on a worker thread, so a handler that changes the game or calls a member documented as called on the game's thread first awaits WaitForGameThreadAsync(IUtility, CancellationToken).