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
eventsIGameEventskeyBSKeyboardDevice.Keys.Key
Returns
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
eventsIGameEvents
Returns
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).