http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting Started: DirectInput - Mouse won't work in exclusive mode



------------------------------------------------------------
GameProgrammer.Com: Getting Started: DirectInput - Mouse
won't work in exclusive mode
------------------------------------------------------------

By Pete B on Wednesday, July 12, 2000 - 05:47 am:

 I can't seem to get the mouse to work in exclusive mode
(with the keyboard in nonexclusive).  I'm using VB6 - DX7 on
Win98 (2nd release).  Every time I run the program it boots
me out of VB completely.  Even the sample progs on the DX
SDK don't work in exclusive mode.  I'm using an old AT
keyboard and serial mouse, would it be a hardware or a
software thing does anyone know?

Also . . . I'm using the following code in Fullscreen mode,
is this wrong? (EventHandle is declared as a Long in
Declarations)

EventHandle = DX7.CreateEvent(Form1)
Call DIMo.SetEventNotification(EventHandle)

It comes up Type Mismatch and doesn't seem to like the Form1
bit.  (I do have a standard VB form called Form1.) 
Considering I have to run the mouse in nonexclusive mode and
want to run fullscreen, what would be the best way to
control mouse movement and input.

Finally, anyone know if/when someone is going to release a
book specifically for DX in VB?  In the interim, and
references to sites with good tutorials would be helpful.

Regards,
Pete

------------------------------------------------------------
 DO NOT REPLY TO THIS MESSAGE!  It is an automatic e-mail
 notification message from the discussion board indicating
 that a new message was posted.  If you do not wish to
 receive further e-mail notification messages from this
 discussion board, edit your user or moderator profile to
 turn off the e-mail notification option.

Use this link to go directly to the discussion:
http://gameprogrammer.com/cgi-bin/comm/gameprogrammer/discus/show.pl?5/81