1
0
Fork 0
mirror of https://gitlab.com/Mr_Goldberg/goldberg_emulator.git synced 2024-11-14 10:50:13 +01:00
goldberg_emulator/sdk_includes/isteamcontroller002.h

37 lines
963 B
C
Raw Permalink Normal View History

2019-04-13 18:21:56 +02:00
#ifndef ISTEAMCONTROLLER002_H
#define ISTEAMCONTROLLER002_H
#ifdef STEAM_WIN32
#pragma once
#endif
class ISteamController002
{
public:
//
// Native controller support API
//
// Must call init and shutdown when starting/ending use of the interface
virtual bool Init() = 0;
virtual bool Shutdown() = 0;
// Pump callback/callresult events, SteamAPI_RunCallbacks will do this for you,
// normally never need to call directly.
virtual void RunFrame() = 0;
virtual int GetConnectedControllers( uint64 * ) = 0;
// Trigger a haptic pulse on the controller
virtual void TriggerHapticPulse( uint32 unControllerIndex, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec ) = 0;
virtual unknown_ret ActivateMode( uint64, int32 ) = 0;
virtual int32 GetJoystickForHandle( uint64 ) = 0;
virtual uint64 GetHandleForJoystick( int32 ) = 0;
virtual unknown_ret GetModeAnalogOutputData( uint64, int32 ) = 0;
};
#endif //ISTEAMCONTROLLER002_H