LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[Windows] Event-based joystick handling

Hi,

      In case this might be of use, here's some sample code that traps joystick events with an event structure.  There may be an example like this here already - if so, apologies for taking up space.  The only examples I saw use polling to check for joystick changes. 😞

 

This example builds on some code found here for trapping windows-messages.

 

Cheers.

0 Kudos
Message 1 of 4
(2,728 Views)

... one more time

Am also attaching the messaging .zip and Messaging.txt - some source code that lists windows messages. 🙂

 

Cheers!

Message 2 of 4
(2,724 Views)

Hello 550nm (Yellow with a tinge of green )

 

We really appreciate your contibrution but the right place to put examples will be the community.

 

LabVIEW code sharing

 

Thanks again.

 

Warm regards,

 

Mart G.

0 Kudos
Message 3 of 4
(2,708 Views)

@margasan wrote:

 

>We really appreciate your contibrution but...

Mart G.


Hi Mart,

For the record, the two CLF calls to Winmm.dll need to have WinAPI checked, and the one labeled "JoyReleaseCapture" needs to be corrected to invoke the "joyReleaseCapture" function.  However, I'll post any new code to correct place -

 thanks for the link. 🙂

 

Cheers.

0 Kudos
Message 4 of 4
(2,705 Views)