blob: 42c2ae9a1b4b85626212f66bad5ac79a8c03e4e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// VJoy.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "windows.h"
#include "VJoy.h"
JOYSTICK_STATE m_joyState[2] = { 0 };
int main(int argc, char* argv[])
{
VJoy_Initialize("", "");
m_joyState[0].XAxis = 32767;
m_joyState[0].YAxis = 32767;
m_joyState[0].ZAxis = 32767;
m_joyState[0].Buttons = 0xAAAAAAAA;
m_joyState[0].POV = (4 << 12) | (4 << 8) | (4 << 4) | 4;
VJoy_UpdateJoyState(0, &m_joyState[0]);
VJoy_Shutdown();
return 0;
}
|