Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Programing Windows Joystick, Questions about windows joystick code
yungblood
post Dec 20 2005, 06:39 PM
Post #1


Member - Active Contributor
Group Icon

Group: Members
Posts: 84
Joined: 7-June 05
From: Antioch, California
Member No.: 5,943



I have 2 joystick related questions.

The first is, does anyone know if there is a driver that will allow me to use my joystick (actually 12button/3axis gamepad) to control my mouse pointer in windows95? I have one program that will allow me to do that (very indirectly) using windows accessability & the program that camewith my joystick. But it is exceedingly slow, because it uses 2 forms of redirection. First it translates joystick movements to key presses (slow), then I use the windows accessability to translate that to mouse movements. But that is so slow, it's practically unusable. I'd like to know if there is anything that can do it directly.

Also, does anyone know how to use windows calls to use a joystick? I know how to use a standard joystick by talking to the gameport directly. My problem is that the joystick I want to use is non-standard. It has a windows driver, so I need to know how to call the windows library that controls the joystick.

Any help is greatly appreciated! smile.gif Thanx! smile.gif

-YB
Go to the top of the page
 
+Quote Post
KazDoran
post Mar 24 2006, 12:57 AM
Post #2


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 49
Joined: 7-March 06
Member No.: 11,803



As far as I'm aware, there isn't a windows library function that deals with joysticks.

Get the DirectX API and use DirectInput functions to get something. I'd do it. smile.gif
Go to the top of the page
 
+Quote Post
iGuest
post Jan 25 2008, 02:33 PM
Post #3


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



Replying to KazDoran

According to http://msdn2.Microsoft.Com/en-us/library/ms709352.Aspx try joyGetPos().
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Networking Programming - C++ - Ms Windows(2)
  2. Programming The Sound Card In Windows(0)
  3. Turbo C++ Ide(7)
  4. Quite A Few Questions...(3)


 



- Lo-Fi Version Time is now: 8th September 2008 - 02:52 AM