|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
Functions | |
Input Devices | |
| bool | IsDevicePropertyHandleValid (FInputDevicePropertyHandle InHandle) |
| Returns true if the given handle is valid. | |
| APlayerController | GetPlayerControllerFromPlatformUser (const FPlatformUserId UserId) |
| Get the player controller who has the given Platform User ID. | |
| APlayerController | GetPlayerControllerFromInputDevice (const FInputDeviceId DeviceId) |
| Get the player controller who owns the given input device id. | |
PlatformInputDevice | |
| int | GetAllConnectedInputDevices (TArray< FInputDeviceId > &OutInputDevices) |
| Gather all currently connected input devices. | |
| int | GetAllInputDevicesForUser (const FPlatformUserId UserId, TArray< FInputDeviceId > &OutInputDevices) |
| Populates the OutInputDevices array with any InputDeviceID's that are mapped to the given platform user. | |
| FInputDeviceId | GetDefaultInputDevice () |
| Returns the default device id used for things like keyboard/mouse input. | |
| int | GetAllActiveUsers (TArray< FPlatformUserId > &OutUsers) |
| Get all currently active platform ids, anyone who has a mapped input device. | |
| bool | EqualEqual_PlatformUserId (FPlatformUserId A, FPlatformUserId B) |
| Returns true if PlatformUserId A is equal to PlatformUserId B (A == B). | |
| int | GetAllInputDevices (TArray< FInputDeviceId > &OutInputDevices) |
| Get all mapped input devices on this platform regardless of their connection state. | |
| EInputDeviceConnectionState | GetInputDeviceConnectionState (const FInputDeviceId DeviceId) |
| Gets the connection state of the given input device. | |
| FInputDeviceId | GetPrimaryInputDeviceForUser (FPlatformUserId UserId) |
| Returns the primary input device used by a specific player, or INPUTDEVICEID_NONE if invalid. | |
| bool | EqualEqual_InputDeviceId (FInputDeviceId A, FInputDeviceId B) |
| Returns true if InputDeviceId A is equal to InputDeviceId B (A == B). | |
| FPlatformUserId | GetUserForInputDevice (FInputDeviceId DeviceId) |
| Returns the platform user attached to this input device, or PLATFORMUSERID_NONE if invalid. | |
| FPlatformUserId | GetUserForUnpairedInputDevices () |
| Returns the platform user id that is being used for unmapped input devices. Will be PLATFORMUSERID_NONE if platform does not support this (this is the default behavior). | |
| FInputDeviceId | InputDeviceId_None () |
| Static invalid input device. | |
| FPlatformUserId | GetPrimaryPlatformUser () |
| Returns the 'Primary' Platform user for this platform. This typically has an internal ID of '0' and is used as the default platform user to map devices such as the keyboard and mouse that don't get assigned unique ID's from their owning platform code. | |
| bool | IsInputDeviceMappedToUnpairedUser (const FInputDeviceId InputDevice) |
| Returns true if the given input device is mapped to the unpaired platform user id. | |
| bool | IsUnpairedUserId (const FPlatformUserId PlatformId) |
| Returns true if the given Platform User Id is the user for unpaired input devices on this platform. | |
| bool | IsValidInputDevice (FInputDeviceId DeviceId) |
| Check if the given input device is valid. | |
| bool | IsValidPlatformId (FPlatformUserId UserId) |
| Check if the given platform ID is valid. | |
| bool | NotEqual_InputDeviceId (FInputDeviceId A, FInputDeviceId B) |
| Returns true if InputDeviceId A is not equal to InputDeviceId B (A != B). | |
| bool | NotEqual_PlatformUserId (FPlatformUserId A, FPlatformUserId B) |
| Returns true if PlatformUserId A is not equal to PlatformUserId B (A != B). | |
| FPlatformUserId | PlatformUserId_None () |
| Static invalid platform user. | |
Variables | |
Variables | |
| const FPlatformUserId | PrimaryPlatformUser |
| const FPlatformUserId | UserForUnpairedInputDevices |
| const FInputDeviceId | DefaultInputDevice |
| bool EqualEqual_InputDeviceId | ( | FInputDeviceId | A, |
| FInputDeviceId | B ) |
Returns true if InputDeviceId A is equal to InputDeviceId B (A == B).
| bool EqualEqual_PlatformUserId | ( | FPlatformUserId | A, |
| FPlatformUserId | B ) |
Returns true if PlatformUserId A is equal to PlatformUserId B (A == B).
| int GetAllActiveUsers | ( | TArray< FPlatformUserId > & | OutUsers | ) |
Get all currently active platform ids, anyone who has a mapped input device.
| OutUsers | Array that will be populated with the platform users. |
| int GetAllConnectedInputDevices | ( | TArray< FInputDeviceId > & | OutInputDevices | ) |
Gather all currently connected input devices.
| OutInputDevices | Array of input devices to populate |
| int GetAllInputDevices | ( | TArray< FInputDeviceId > & | OutInputDevices | ) |
Get all mapped input devices on this platform regardless of their connection state.
| OutInputDevices | Array of input devices to populate |
| int GetAllInputDevicesForUser | ( | const FPlatformUserId | UserId, |
| TArray< FInputDeviceId > & | OutInputDevices ) |
Populates the OutInputDevices array with any InputDeviceID's that are mapped to the given platform user.
| UserId | The Platform User to gather the input devices of. |
| OutInputDevices | Array of input device ID's that will be populated with the mapped devices. |
| FInputDeviceId GetDefaultInputDevice | ( | ) |
Returns the default device id used for things like keyboard/mouse input.
| EInputDeviceConnectionState GetInputDeviceConnectionState | ( | const FInputDeviceId | DeviceId | ) |
Gets the connection state of the given input device.
| DeviceId | The device to get the connection state of |
| APlayerController GetPlayerControllerFromInputDevice | ( | const FInputDeviceId | DeviceId | ) |
Get the player controller who owns the given input device id.
| APlayerController GetPlayerControllerFromPlatformUser | ( | const FPlatformUserId | UserId | ) |
Get the player controller who has the given Platform User ID.
| FInputDeviceId GetPrimaryInputDeviceForUser | ( | FPlatformUserId | UserId | ) |
Returns the primary input device used by a specific player, or INPUTDEVICEID_NONE if invalid.
| FPlatformUserId GetPrimaryPlatformUser | ( | ) |
Returns the 'Primary' Platform user for this platform. This typically has an internal ID of '0' and is used as the default platform user to map devices such as the keyboard and mouse that don't get assigned unique ID's from their owning platform code.
| FPlatformUserId GetUserForInputDevice | ( | FInputDeviceId | DeviceId | ) |
Returns the platform user attached to this input device, or PLATFORMUSERID_NONE if invalid.
| FPlatformUserId GetUserForUnpairedInputDevices | ( | ) |
Returns the platform user id that is being used for unmapped input devices. Will be PLATFORMUSERID_NONE if platform does not support this (this is the default behavior).
| FInputDeviceId InputDeviceId_None | ( | ) |
Static invalid input device.
| bool IsDevicePropertyHandleValid | ( | FInputDevicePropertyHandle | InHandle | ) |
Returns true if the given handle is valid.
| bool IsInputDeviceMappedToUnpairedUser | ( | const FInputDeviceId | InputDevice | ) |
Returns true if the given input device is mapped to the unpaired platform user id.
| bool IsUnpairedUserId | ( | const FPlatformUserId | PlatformId | ) |
Returns true if the given Platform User Id is the user for unpaired input devices on this platform.
| bool IsValidInputDevice | ( | FInputDeviceId | DeviceId | ) |
Check if the given input device is valid.
| bool IsValidPlatformId | ( | FPlatformUserId | UserId | ) |
Check if the given platform ID is valid.
| bool NotEqual_InputDeviceId | ( | FInputDeviceId | A, |
| FInputDeviceId | B ) |
Returns true if InputDeviceId A is not equal to InputDeviceId B (A != B).
| bool NotEqual_PlatformUserId | ( | FPlatformUserId | A, |
| FPlatformUserId | B ) |
Returns true if PlatformUserId A is not equal to PlatformUserId B (A != B).
| FPlatformUserId PlatformUserId_None | ( | ) |
Static invalid platform user.
| const FInputDeviceId DefaultInputDevice |
| const FPlatformUserId PrimaryPlatformUser |
| const FPlatformUserId UserForUnpairedInputDevices |