Skip to main content

Module input

Module input 

Source
Expand description

Raw ABI declarations for the SCS Input SDK 1.00 interface.

These definitions mirror scssdk_input.h, scssdk_input_device.h, scssdk_input_event.h, and the ETS2/ATS input-version headers from the official SDK 1.14 distribution. The input API was introduced by SDK 1.14; none of the official SDK 1.0 through 1.13 archives contain these headers.

Structs§

ScsInputDevice
Raw input-device registration structure.
ScsInputDeviceInput
Information about one bool or float input exposed by a device.
ScsInputEvent
One event returned by an input device callback.
ScsInputInitParams
Opaque common ancestor used by the loader-facing input init function.
ScsInputInitParamsV100
Initialization parameters for input API 1.00.

Constants§

SCS_INPUT_ATS_GAME_VERSION_1_00
Initial and current ATS game version for the input API.
SCS_INPUT_ATS_GAME_VERSION_CURRENT
Latest ATS input game version declared by SDK 1.14.
SCS_INPUT_DEVICE_TYPE_GENERIC
SCS_INPUT_DEVICE_TYPE_INVALID
SCS_INPUT_DEVICE_TYPE_SEMANTICAL
SCS_INPUT_EUT2_GAME_VERSION_1_00
Initial and current ETS2 game version for the input API.
SCS_INPUT_EUT2_GAME_VERSION_CURRENT
Latest ETS2 input game version declared by SDK 1.14.
SCS_INPUT_EVENT_CALLBACK_FLAG_FIRST_AFTER_ACTIVATION
SCS_INPUT_EVENT_CALLBACK_FLAG_FIRST_IN_FRAME
SCS_INPUT_MAX_INPUT_COUNT
Maximum number of inputs accepted for one registered device.
SCS_INPUT_VERSION_1_00
Initial and current input API version declared by SDK 1.14.
SCS_INPUT_VERSION_CURRENT
Latest input API version declared by SDK 1.14.

Type Aliases§

ScsInputActiveCallback
Callback used by SCS to notify a device that it became active or inactive.
ScsInputDeviceType
Raw discriminator used by scs_input_device_t::type.
ScsInputEventCallback
Callback repeatedly invoked by SCS until it returns SCS_RESULT_NOT_FOUND.
ScsInputRegisterDevice
Function supplied by SCS for registering one input device during init.

Unions§

ScsInputEventValue
Storage written by the plugin when SCS asks for the next input event.