1
0
mirror of synced 2024-11-16 15:33:50 +00:00
G940LEDControl/LogitechSDK/SteeringWheel/Src/LogiLeds.h

36 lines
737 B
C
Raw Normal View History

2012-01-04 19:11:07 +00:00
#ifndef LOGI_LEDS_H_INCLUDED_
#define LOGI_LEDS_H_INCLUDED_
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>
namespace LogitechSteeringWheel
{
CONST DWORD ESCAPE_COMMAND_LEDS = 0;
CONST DWORD LEDS_VERSION_NUMBER = 0x00000001;
struct LedsRpmData
{
FLOAT currentRPM;
FLOAT rpmFirstLedTurnsOn;
FLOAT rpmRedLine;
};
struct WheelData
{
DWORD size;
DWORD versionNbr;
LedsRpmData rpmData;
};
class Leds
{
public:
HRESULT Play(CONST LPDIRECTINPUTDEVICE8 device, CONST FLOAT currentRPM, CONST FLOAT rpmFirstLedTurnsOn, CONST FLOAT rpmRedLine);
private:
};
}
#endif // LOGI_LEDS_H_INCLUDED_