| Poster | : steveh | | Posts | : 80 | | Country | : Australia | | City | : Orange |
| | | | Posted by steveh on 17/02/2007 at 05:05:23
| | Hello,
I want to use a mouse in C# (DirectX not XNA as yet) to get input for a flight sim. What is the process to intiliase a mouuse and get mouse movements, left/right, forward/back and the wheel movement ?
thanks
steveh | |
|
|
| |
| |
| Poster | : riemer | | Posts | : 1388 | | Country | : Belgium | | City | : Antwerp |
| | | | Posted by riemer on 17/02/2007 at 06:12:59
| | There's no initialisation process. Same as with the keyboard, simply read the MouseState, from which you can read X and Y coordinate, as well as the button clicks.
A free roaming mousecam will be the first chapter of the 4th series. | |
|
|
| |
| |
| Poster | : Trur | | Posts | : 6 | | Country | : Netherland | | City | : Utrecht |
| | | | Posted by Trur on 04/03/2007 at 14:40:45
| | | How? | |
|
|
| |
| |
| Poster | : Calligula | | Posts | : 12 | | Country | : Hungary | | City | : Budapest |
| | | | Posted by Calligula on 29/06/2007 at 07:33:12
| | I try use the mouse in directx, but when i make like the key, it don't work.
I try another way, but dont better.
The original mouseclick event in the vs is not god for me.
Please someone help me, i need for the mouse position in the 3d world, and the click event.
Thanks. | |
|
|
| |
| |
| Poster | : nemo krad | | Posts | : 61 | | Country | : England | | City | : Leicester |
| | | | Posted by nemo krad on 29/06/2007 at 08:48:13
| | I have code for placing the mouse position in the 3D world here. It is part of my object picking code.
"http://randomchaosuk.blogspot.com/2007/05/engine-design-ray-picking.html"
See the calls to Unproject. | |
|
|
| |
| |
| Poster | : Calligula | | Posts | : 12 | | Country | : Hungary | | City | : Budapest |
| | | | Posted by Calligula on 04/07/2007 at 12:18:58
| | | Thank's for the answer the page is realy god, but i would like c# example. | |
|
|
| |
| |
| Poster | : nemo krad | | Posts | : 61 | | Country | : England | | City | : Leicester |
| | | | Posted by nemo krad on 04/07/2007 at 14:14:12
| | It is ALL in C# and ALL for XNA...
What language do you think it is? If it is unclear then I will put it right :) | |
|
|
| |
| |
| Poster | : Calligula | | Posts | : 12 | | Country | : Hungary | | City | : Budapest |
| | | | Posted by Calligula on 05/07/2007 at 06:05:45
| | Sorry it's my fault, I do' write all information. I learn DirectX so the c# is correct, but the XNA is not so clear for me.
If you can a same page with DirectX, I realy thanks for it. | |
|
|
| |
| |
| Poster | : Nemo Krad | | Posts | : 61 | | Country | : England | | City | : Leicester |
| | | | Posted by Nemo Krad on 05/07/2007 at 16:08:34
| | :( I am sorry, but I am pretty new to the whole 3D thing so all I have ever used is XNA. I don't think I will ever use Managed DirectX either.
You should be able to take that code and re engineer it though. Hope you can. | |
|
|