Re: Detect joystick in background

Tech-Archive recommends: Speed Up your PC by fixing your registry



Dear all,

after tracking my code, I found that the error case at

applicationDevice.Poll()

where applicationDevice=joystick.

in normal situtaion, if my appliction windows on focus, this statement
run correctly and get most update joystick input info

when the windows loss focus, the Poll() throw exception

any hitns to fix this so that even the windows loss focus, poll can
still get the data from joystick?

thanks
P


On 4月7日, 下午1時05分, petercyyau <petercy...@xxxxxxxxx> wrote:
Dear all,

I made a program to detect the joystick action, simple use only up
down left and right.
I succesfully copy a demo code from Direct X Sample Library.

Question: How to modify the code to make the program detect the
joystick in background? i.e. if the windows (my program) is not in
focus. How to make my program keep detect the joystick action?

Thank you very much.
Peter

.



Relevant Pages

  • Re: Which USB hub port is a device connected to?
    ... For typical Windows PC requirement ... For our use case, a joystick ... on port 1 and a dual-axis game pad on port 4 is a reasonable hardware ...
    (microsoft.public.development.device.drivers)
  • Re: gameport drivers
    ... Did the joystick come with an installation CD for Windows XP? ... it is a Tournament usb wireless ...
    (microsoft.public.windowsxp.games)
  • Re: NFSMW Joystickempfindlichkeit
    ... > Liegt vieleicht daran das eigentlich jeder Aktuelle Joystick unter ... und Empfindlichkeit kann man in Windows gar nicht einstellen. ... Prev by Date: ... Next by Date: ...
    (de.rec.spiele.computer.simulation)
  • Re: Mac OS X will remain second rate until . . . .
    ... > I once bought a USB joystick to use with a flight simulator game on ... > my Mac. ... The box proudly displayed the Windows and OS X logos. ...
    (comp.sys.mac.advocacy)
  • Windows 98 SE: Joystickproblem
    ... Ich habe probeweise Windows 98 SE über mein Windows 98 installiert. ... nur meinen USB-Joystick wollte Windows ... Joystick dann erst eingesteckt wurde. ... was Patch 240075DE.exe beheben soll: ...
    (microsoft.public.de.german.win98.allgemein)