Re: Detect joystick in background
- From: petercyyau <petercyyau@xxxxxxxxx>
- Date: Mon, 7 Apr 2008 01:12:16 -0700 (PDT)
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
.
- References:
- Detect joystick in background
- From: petercyyau
- Detect joystick in background
- Prev by Date: Detect joystick in background
- Next by Date: CallByName with ByRef parameters
- Previous by thread: Detect joystick in background
- Next by thread: CallByName with ByRef parameters
- Index(es):
Relevant Pages
|