2023-09-30 14:02:30 +02:00
|
|
|
/* This file is auto-generated, do not edit. */
|
|
|
|
#include "unix_private.h"
|
2023-09-23 23:44:45 +02:00
|
|
|
|
2023-10-03 11:04:33 +02:00
|
|
|
#if 0
|
|
|
|
#pragma makedep unix
|
|
|
|
#endif
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init( void *args )
|
2018-01-18 17:24:05 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init_params *params = (struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init_params *)args;
|
2023-09-30 14:02:30 +02:00
|
|
|
struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
2023-10-02 23:20:43 +02:00
|
|
|
char *u_pchAbsolutePathToControllerConfigVDF = steamclient_dos_to_unix_path( params->pchAbsolutePathToControllerConfigVDF, 0 );
|
|
|
|
params->_ret = iface->Init( u_pchAbsolutePathToControllerConfigVDF );
|
|
|
|
steamclient_free_path( u_pchAbsolutePathToControllerConfigVDF );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-01-18 17:24:05 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Shutdown( void *args )
|
2018-01-18 17:24:05 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Shutdown_params *params = (struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Shutdown_params *)args;
|
2023-09-30 14:02:30 +02:00
|
|
|
struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
2023-09-23 23:44:45 +02:00
|
|
|
params->_ret = iface->Shutdown( );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-01-18 17:24:05 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_RunFrame( void *args )
|
2018-01-18 17:24:05 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_RunFrame_params *params = (struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_RunFrame_params *)args;
|
2023-09-30 14:02:30 +02:00
|
|
|
struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
2023-09-23 23:44:45 +02:00
|
|
|
iface->RunFrame( );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-01-18 17:24:05 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_GetControllerState( void *args )
|
2018-01-18 17:24:05 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_GetControllerState_params *params = (struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_GetControllerState_params *)args;
|
2023-09-30 14:02:30 +02:00
|
|
|
struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
2023-09-23 23:44:45 +02:00
|
|
|
params->_ret = iface->GetControllerState( params->unControllerIndex, params->pState );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-01-18 17:24:05 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_TriggerHapticPulse( void *args )
|
2018-01-18 17:24:05 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_TriggerHapticPulse_params *params = (struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_TriggerHapticPulse_params *)args;
|
2023-09-30 14:02:30 +02:00
|
|
|
struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
2023-09-23 23:44:45 +02:00
|
|
|
iface->TriggerHapticPulse( params->unControllerIndex, params->eTargetPad, params->usDurationMicroSec );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-01-18 17:24:05 +01:00
|
|
|
}
|
|
|
|
|
2023-09-30 13:08:49 +02:00
|
|
|
NTSTATUS ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_SetOverrideMode( void *args )
|
2018-01-18 17:24:05 +01:00
|
|
|
{
|
2023-09-30 13:08:49 +02:00
|
|
|
struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_SetOverrideMode_params *params = (struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_SetOverrideMode_params *)args;
|
2023-09-30 14:02:30 +02:00
|
|
|
struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side;
|
2023-09-23 23:44:45 +02:00
|
|
|
iface->SetOverrideMode( params->pchMode );
|
2023-09-30 13:08:49 +02:00
|
|
|
return 0;
|
2018-01-18 17:24:05 +01:00
|
|
|
}
|
|
|
|
|