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