473,398 Members | 2,343 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,398 software developers and data experts.

can the joystick send events to a C# app?

All example codes I found with DirectX or XNA access the joystick by
pulling... ?? is there anybody who has been able to use the joystick with
events (with C#)?? Is it possible?

If it is not possible, I only want to know it. In that way I would tell it
inmediately to my boss...

thank you
Feb 2 '07 #1
1 3210
On 2 Feb, 11:19, "Vicente Nicolau" <vini...@eui.upv.eswrote:
All example codes I found with DirectX or XNA access the joystick by
pulling... ?? is there anybody who has been able to use the joystick with
events (with C#)?? Is it possible?

If it is not possible, I only want to know it. In that way I would tell it
inmediately to my boss...

thank you
When you think about it, polling is more natural for game development
as games are basically a loop which goes, calculate stuff, draw stuff,
calculate stuff, draw stuff. You would not want an event being raised
during the redraw, and you only need to know the joystick status when
you're about to calculate any changes. As games are generally about
performance, which is more performant checking the joystick status
once or having it raise half a dozen events between uses of that data?
Taking that a step forward, when would you have the event fired? If
you think about say the 360 controller being used to drive a car, the
joystick is going to be moving constantly.
So you can wrap the joystick code up in a class that will fire events,
I just don't think you'll find it very useful unless you're just
interested in digital movements, ie stick goes left, stick now right
or button down button up.


Feb 2 '07 #2

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

Similar topics

1
by: Bleedledeep | last post by:
I am new to C#/.NET/DirectX, and could not find a simple example of how to read the X/Y location of the joystick. < YIKES!!! The DirectX.DirectInput is one serious pile of API! > After some...
2
by: PawelR | last post by:
Hello group, My English is very little. I want same samples about programming joysticks connected to USB port. If you can help me please send same adresses or samples. Thx PawelR
0
by: CForrester | last post by:
Hey there, I'm trying to emulate a joystick throttle using keyboard keys. For example: ` = 0%, 1 = 10%, 2 = 20%, 3 = 30%, 4 = 40%, 5 = 50%, 6 = 60%, 7 = 70%, 8 = 80%, 9 = 90%, 0 = 100% My...
1
by: Hermanutz | last post by:
Hello, I'm look after a commercial joystick driver controlled by my application (determine the number of axis, determine the number of buttons, transmit axis values and button values). I thing,...
2
by: bryan rasmussen | last post by:
Hi, I've been looking at autohotkey to do some different usability hacks for windows http://www.autohotkey.com/ one of the benefits of this language is it allows one to catch keyboard usage,...
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: Vicente Nicolau | last post by:
Is there any way to recieve events from a joystick and to hadle them using C#??? Without using pulling.... Thanks.
0
by: Vicente Nicolau | last post by:
All example codes I found with DirectX or XNA access the joystick by pulling... ?? is there anybody who has been able to use the joystick with events (with C#)?? Is it possible? If it is not...
2
by: Vicente Nicolau | last post by:
All example codes I found with DirectX or XNA access the joystick by pulling... ?? is there anybody who has been able to use the joystick with events (with C#)?? Is it possible? If it is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.