Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Joystick programming question using MFC

Posted on 1998-04-22
3
Medium Priority
?
663 Views
Last Modified: 2013-11-19
Hi! I am working on a joystick test program using MFC. I know Windows platform includes some multimedia extension Windows messages (not standard windows messages) like MM_JOY1BUTTONDOWN to handle Multimedia devices.  When I am
trying to press any button of the joystick so that Windows will notify my program that one of its buttons has change states, it does NOT WORK if I use ON_MESSAGE(MM_JOY1BUTTONDOWN , OnJoyButtonDown) to handle MM_JOY1BUTTONDOWN message.
(Note: OnJoyButtonDown is a user-defined message function)

Could you tell me the correct way to solve my problem ASAP?

0
Comment
Question by:jennyhou
  • 2
3 Comments
 

Author Comment

by:jennyhou
ID: 1301346
Edited text of question
0
 
LVL 23

Accepted Solution

by:
chensu earned 150 total points
ID: 1301347
You should use the joySetCature function first to capture the joystick so that its messages will be sent to the specified window.


0
 

Author Comment

by:jennyhou
ID: 1301348
Thanks for your help about my question!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question