Game Controller
Glossary Item Box
DirectX SDK: DirectInput
DSS Interop Samples: XInput Controller Sample | Desktop Joystick Sample
VPL User Interface Services: Game Controller
Microsoft Robotics Developer Studio | Send feedback on this topic |
Game Controller
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:
Samples\UX\GameController
Contents
- Running the Game Controller Service
Prerequisites
Hardware
The Game Controller sample requires some form of a DirectInput game controller such as a joystick or GamePad
Software
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.
https://localhost:50000/controlpanel
Now go to the directory and look for the service instance to show up:
https://localhost:50000/directory
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.
Summary
This sample explains:
- Running the Game Controller Service
See Also |
DirectX SDK: DirectInput
DSS Interop Samples: XInput Controller Sample | Desktop Joystick Sample
VPL User Interface Services: Game Controller
© 2012 Microsoft Corporation. All Rights Reserved.