Gorgon
Show / Hide Table of Contents

Interface IGorgonGamingDeviceDriverFactory

A factory used to load gaming device drivers.

Namespace: Gorgon.Input
Assembly: Gorgon.Input.dll
Syntax
public interface IGorgonGamingDeviceDriverFactory

Methods

| Edit this page View Source

LoadAllDrivers(string)

Function to load all drivers from the plug in assemblies that are currently loaded.

Declaration
IReadOnlyList<IGorgonGamingDeviceDriver> LoadAllDrivers(string assemblyPath)
Parameters
Type Name Description
string assemblyPath

The path to the assembly containing the gaming driver plug ins.

Returns
Type Description
IReadOnlyList<IGorgonGamingDeviceDriver>

A read only list containing an instance of each driver.

| Edit this page View Source

LoadDriver(string, string)

Function to load a gaming device driver from any loaded plug in assembly.

Declaration
IGorgonGamingDeviceDriver LoadDriver(string assemblyPath, string driverType)
Parameters
Type Name Description
string assemblyPath

The path to the assembly containing the gaming driver plug ins.

string driverType

The fully qualified type name of the driver to load.

Returns
Type Description
IGorgonGamingDeviceDriver

The gaming device driver plug in.

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author