Glossary Item Box
The DirectInput Application Programming Interface (API) is used to process data from a keyboard, mouse, joystick, or other game controller. The Game Controller sample exposes a DirectInput controller as a DSS service.
This sample is provided in the C# language. You can find the project files for this sample at the following location under the Microsoft Robotics Developer Studio installation folder:
The Game Controller sample requires some form of a DirectInput game controller such as a joystick or GamePad
This sample is designed for use with Microsoft Visual C#. You can use:
- Microsoft Visual C# Express Edition
- Microsoft Visual Studio Standard, Professional, or Team Edition.
You will also need Microsoft Internet Explorer (or web browser of your choice).
1 Running the Game Controller Service
Start a DSS Command Prompt window.
Start a DssHost node:
dsshost /port:50000 /t:50001"
Point your Web browser at the Control Panel, find the Game Controller service and start it.
Now go to the directory and look for the service instance to show up:
You can inspect the service state by clicking on the link representing the Game Controller service instance. The Game Controller can be used in connection with the simple Dashboard service to drive a robot, real or simulated.
This sample explains:
DirectX SDK: DirectInput
VPL User Interface Services: Game Controller
© 2012 Microsoft Corporation. All Rights Reserved.