Solved

Joystick programming question using MFC

Posted on 1998-04-22
3
660 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

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

Accepted Solution

by:
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.


0
 

Author Comment

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

696 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