Struct GorgonRawInputSettings
Settings to pass to the GorgonRawInput interface.
Inherited Members
Namespace: Gorgon.Input
Assembly: Gorgon.Input.dll
Syntax
public struct GorgonRawInputSettings
Fields
| Edit this page View SourceAllowBackground
Flag to indicate whether to allow the application to receive raw input while in the background.
Declaration
public bool AllowBackground
Field Value
Type | Description |
---|---|
bool |
Remarks
When set to true, raw input messages will be sent to the application regardless of whether it is in the foreground or not, otherwise it will only receive messages while in the foreground.
This setting requires that the TargetWindow be set, if it is not, then the primary application window will be used.
TargetWindow
The target window handle for raw input messages.
Declaration
public nint TargetWindow
Field Value
Type | Description |
---|---|
nint |
Remarks
This is used to target Raw Input messages to a specific window in the application. If this value is left at null, then the messages will be sent to which ever window has keyboard focus in the application.
If the AllowBackground is set to true, then this value must be set.