473,397 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How to use DirectInput in C#?

Hello everyone,I want to use a joystick to control my computer, I know
DirectInput can do this job,but I can't find any example.Do you have an
example that use DirectInput in C#? Please help me,thank you!
Nov 17 '05 #1
1 6526
The easiest way to deal with the joystick in C# would probably be with
Managed DirectX (aka DirectX for Managed Code) (included in the DirectX 9
SDK) and the Microsoft.DirectX.DirectInput namespace
(http://msdn.microsoft.com/archive/de...rectinput.asp).

Take a look at
http://msdn.microsoft.com/archive/de..._capturing.asp

Brendan
"shrinerain" wrote:
Hello everyone,I want to use a joystick to control my computer, I know
DirectInput can do this job,but I can't find any example.Do you have an
example that use DirectInput in C#? Please help me,thank you!

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DD | last post by:
I have been searching for an example of steering wheel input using DirectInput managed code. Is there a code snippet available to show how this is done? Thanks
0
by: sri_san | last post by:
I am new to directx API and looking to make it work with C#. I was able to get the state of joystick by polling it at regular intervals. I am trying to make it work based on events. Here is a link...
5
by: Steve | last post by:
does anyone know where i can find an example of directinput for a joystick on VB.NET. all the examples i can find apply to vb 6.0. Thanks Steve
2
by: Vicente Nicolau | last post by:
Hello, I'm implementig a C# app in which I need to access to a Joystick. Nowadays I'm using the DirectInput class for getting the actual joystick position, but trhough polling. I would like...
2
by: James Hallam | last post by:
Hi, I'm having trouble getting a conditional force (namely friction) using VB6. I have had no problem using constant or periodic forces. The trouble seems to be that when defining the later...
11
Atran
by: Atran | last post by:
Hello Everybody: In Windows, when you press left-Mouse button and drag the mouse, you see a rectangle create, so I need to the rectangle survey, I mean to string the rectangle survey, Can anyone...
0
by: Fromethius | last post by:
Hi everyone. For the past day I've been trying to find a good way to handle keyboard input. Naturally, I wanted to just use WM_KEYDOWN and WM_KEYUP to handle my events, but they proven to have...
4
by: colin | last post by:
Hi, Is there an easy way to do 3d drawing using drect3d8 devices in c# ? please dont suggest using directx9 unless there is a way to use directx9 on devices with only direct3d8 support. the...
5
by: 200dogz | last post by:
I'm trying to use DirectInput in the DirectX SDK to do USB reading (a device as joystick). There's no error when compiling the codes but whenever it tries to excecute: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.