Joystick programming question using MFC

Posted on 1998-04-22
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?

Question by:jennyhou
  • 2

Author Comment

ID: 1301346
Edited text of question
LVL 23

Accepted Solution

chensu earned 50 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.


Author Comment

ID: 1301348
Thanks for your help about my question!

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange date stored 22 119
List out all word 7 289
sumDigits challenge 9 147
Updating statistics with error notification email in SQL server 4 94
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 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