ReadMe PDF
ReadMe PDF
2
Developed by Headsoft
Description
The VJoy Virtual Joystick Driver SDK is a collection of source code examples for
controlling the VJoy Virtual Joystick Driver.
For more information on these devices please visit:
VJoy - http://headsoft.com.au/index.php?category=vjoy
C#
C++
Delphi
VB6
VB.NET
Strutures
struct JOYSTICK_STATE
{
unsigned char ReportId;
short XAxis;
short YAxis;
short ZAxis;
short XRotation;
short YRotation;
short ZRotation;
short Slider;
short Dial;
unsigned short POV;
unsigned int Buttons;
};
Functions
bool VJoy_Initialize((char *) name, (char *) serial)
void VJoy_Shutdown()
10/14/2012
Page 1 of 2
Examples in C++
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;
}
Release Dates
Contact
Ben Baker (VJoy SDK Developer)
[email protected] / www.headsoft.com.au
10/14/2012
Page 2 of 2