|
-
Aug 21st, 2004, 09:06 AM
#1
Thread Starter
Frenzied Member
C++: Mouse movement
Hi.
I have a 3D environment in which I can move around using the keyboard. Which function should I use if I want mouse movement instead??
<Edited By Moderator (Electroman), Altered Title>
Last edited by Electroman; Aug 23rd, 2004 at 07:45 PM.
-
Aug 21st, 2004, 10:12 AM
#2
Re: Mouse movement
Originally posted by CyberCarsten
Hi.
I have a 3D environment in which I can move around using the keyboard. Which function should I use if I want mouse movement instead??
A good start if you are unfamiliar with the way the mouse works in DX is too look at the sample in the SDK.,..it helped me a lot the first time.
Is your problems by setting it up, or the movement it self?
-
Aug 21st, 2004, 11:46 AM
#3
Thread Starter
Frenzied Member
No, I just don't know which function to use
-
Aug 21st, 2004, 09:18 PM
#4
Ex-Super Mod'rater
I'm guessing you weren't using DirtectInput for the keyboard? Well for the mouse I'd recommend using DirectX cos I don't think there is similar functions for the mouse :unsure:. I was thinking this the other day cos I was sure I have done it before but I couldn't remember the APIs .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Aug 22nd, 2004, 07:31 AM
#5
Thread Starter
Frenzied Member
Yes, I know that I must use DirectInput since the WinAPI only supports x,y movement. But I dont know how to get started...
-
Aug 22nd, 2004, 07:43 AM
#6
Have you looked at the samples in the SDK. I am not sure if I can explain it better then those samples...but I can try if you don't get them....they are very self explicable....
-
Aug 22nd, 2004, 08:05 AM
#7
Ex-Super Mod'rater
Are you using VB or C++? I'll try and dig out a project and show you the Input part from it .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Aug 22nd, 2004, 08:11 AM
#8
I think it is C++...thats at least what I have seen he has been using the last year or so...
-
Aug 22nd, 2004, 10:26 AM
#9
Thread Starter
Frenzied Member
you are right again it is c++
I will have a look at those samples, and hopefully the will ******** things
-
Aug 24th, 2004, 03:59 PM
#10
Ex-Super Mod'rater
Sorry its taken me a while to get back to this but I eventually got sometime today and when i looked I haven't actually got an example for mouse input, just Keyboard.....strange cos I sear I saw it somewhere. I remember a while back making a thread asking if anyone had used Dx9 DInput for a mouse and Note replied .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Aug 24th, 2004, 04:07 PM
#11
Thread Starter
Frenzied Member
Its ok, I'll figure it out somehow
-
Aug 24th, 2004, 05:30 PM
#12
PowerPoster
If you want code for init a mouse with direct input, and a routine to use it...I can post one...
"From what was there, and was meant to be, but not of that was faded away." - - Steve Damm
"The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm
"When you do things right, people won't be sure if you did anything at all." - - God from Futurama
-
Aug 25th, 2004, 03:09 AM
#13
Thread Starter
Frenzied Member
-
Aug 25th, 2004, 05:58 AM
#14
Ex-Super Mod'rater
BTW which version of Dx would it be? As for C++ I've only used Dx9 but I've used previous Dx version in VB, converting the keyboard code I used in VB & Dx7 to C++ & Dx9 wasn't too hard .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Aug 25th, 2004, 03:04 PM
#15
Thread Starter
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|