Take a look at our
ThinkPads.com HOME PAGE
For those who might want to contribute to the blog, start here: Editors Alley Topic
Then contact Bill with a Private Message

Trackpoint / pointing stick as a real joystick

Forum for scripts, utilities like TPFanControl, IBM-ECW, 2-finger scrolling, etc.
Post Reply
Message
Author
rubinhood
Posts: 6
Joined: Wed Oct 22, 2008 11:26 am
Location: Dublin, Ireland

Trackpoint / pointing stick as a real joystick

#1 Post by rubinhood » Sun Mar 14, 2010 9:06 pm

Hey guys. I'm new on the forums and may have a utility to share but only if there's sufficient interest.

There's a neat little joystick utility + driver package out there called Parallel Port Joystick. It's not actively developed any more. It lets you install a virtual joystick driven by various devices such as mouse, keyboard, and gadgets attached to your ports. It has a nice programming interface that lets you send arbitrary data to the joystick driver.

I'm no C programmer but using the sample program provided by the developer of this great utility, I managed to turn the Trackpoint stick into a device that Windows (2000 and later) sees as a real joystick. It shows up in Control Panel / Game controllers as such. You need to toggle between the joystick and mouse modes. It worked on one other non-thinkpad laptop that also has a pointing stick.

Post a note if you could use this utility. The setup is cumbersome and I wouldn't be able to actively support or develop the tool but maybe someone else can.

yak
ThinkPadder
ThinkPadder
Posts: 1256
Joined: Thu Dec 06, 2007 3:17 pm
Location: NRW, Germany

Re: Trackpoint / pointing stick as a real joystick

#2 Post by yak » Mon Mar 22, 2010 8:06 pm

Sure, post it and let us try it out.

I know the Parallel Port Joystick driver. I remember writing a small program in Python redirecting the APS accelerometer data to the driver. That was back when I had a T41. With that I could simulate a joystick by tilting the laptop. Coincidently I also haven't published it anywhere.

So, make a good example and publish your work.
:)

BTW, does the PPJoy work on Vista/7?
ThinkPad™ X201 / AFFS-120
i5-560M 2.67Ghz, 8GB RAM, Samsung 840 Pro 256GB SSD, Win 8 Pro 64-bit, UltraBase X200, ThinkPad Compact USB Keyboard,
Dell U2713HM (2560x1440, IPS), ExpressCard USB 3.0 (2 ports, flush), Nexus 7+10

yak
ThinkPadder
ThinkPadder
Posts: 1256
Joined: Thu Dec 06, 2007 3:17 pm
Location: NRW, Germany

Re: Trackpoint / pointing stick as a real joystick

#3 Post by yak » Mon Mar 22, 2010 8:30 pm

Just tried installing it on Windows 7 32bit. I got the "unsigned driver" warning twice during installation but it works. I just downloaded some joystick test program and my accelerometer script works on my T60.
ThinkPad™ X201 / AFFS-120
i5-560M 2.67Ghz, 8GB RAM, Samsung 840 Pro 256GB SSD, Win 8 Pro 64-bit, UltraBase X200, ThinkPad Compact USB Keyboard,
Dell U2713HM (2560x1440, IPS), ExpressCard USB 3.0 (2 ports, flush), Nexus 7+10

thinkpadrobert
Posts: 21
Joined: Mon May 10, 2010 8:29 pm
Location: australia, perth, wa

Re: Trackpoint / pointing stick as a real joystick

#4 Post by thinkpadrobert » Tue May 11, 2010 11:08 am

Hey wow! That sounds really awesome both of you! rubinhood - can I please try your trackpoint mod, and yak, can I please try your accelerometer mod?

I'm using an x61 tablet.

rubinhood
Posts: 6
Joined: Wed Oct 22, 2008 11:26 am
Location: Dublin, Ireland

Re: Trackpoint / pointing stick as a real joystick

#5 Post by rubinhood » Mon May 31, 2010 3:34 pm

Hey guys. Here's the "TPJoy" package:

http://www.mediafire.com/file/s9tu9bq8d15kcy9/TPJoy1.0.zip
(Updated hosting page)

It sucks that I can't attach files to my post in this forum...

I included a README file, please start with that. Install Parallel Port Joystick first, add a Virtual Joystick, and follow the steps in the README. Everything else necessary to use the utility and play with the sources is also included. Good luck. There are no warranties of any kind. If you enhance this utility in any meaningful way, please share your work here and leave the README file intact.

(I never received any topic reply notifications, I wonder why that is...)

Update: if you're concerned about the files in the archive, all you need are the sources (the .c and the .h file) and you can download the rest (Parallel Port Joystick, MingW) from their homepages and compile TPJoy yourself.
Last edited by rubinhood on Sun Feb 13, 2011 9:14 pm, edited 1 time in total.

thinkpadrobert
Posts: 21
Joined: Mon May 10, 2010 8:29 pm
Location: australia, perth, wa

Re: Trackpoint / pointing stick as a real joystick

#6 Post by thinkpadrobert » Sat Jul 10, 2010 12:52 am

Thanks so much Rubinhood! I tried it out and got it working in windows 7. It looks as if you've captured the mouse pointer and done math to get the behaviour right. I haven't tried it with any games but I did test with the windows calibration tool and found that if the trackpoint wasn't pushed hard to the sides the pointer was jumping around a fair bit. Calibration definitely helped though.

Would it help if I asked the board admins to enable attachments for this thread?

rubinhood
Posts: 6
Joined: Wed Oct 22, 2008 11:26 am
Location: Dublin, Ireland

Re: Trackpoint / pointing stick as a real joystick

#7 Post by rubinhood » Wed Jul 21, 2010 10:28 am

Thanks for the good feedback!
thinkpadrobert wrote:Would it help if I asked the board admins to enable attachments for this thread?
If you did that I could attach the package to a post in this topic.

thinkpadrobert
Posts: 21
Joined: Mon May 10, 2010 8:29 pm
Location: australia, perth, wa

Re: Trackpoint / pointing stick as a real joystick

#8 Post by thinkpadrobert » Sat Aug 21, 2010 12:35 am

It's probably easier to post it on rapidshare.

You might be interested to know that ppjoy now includes a mouse to joystick program that works pretty well with the trackpoint.

Since yak didn't post his accelerometer mod, I've started working on one in C#. I'm reading the accelerometer data successfully, but I'm struggling to pass the data into into ppjoy, so any help would be great. Perhaps I could have a look at your source code?

thinkpadrobert
Posts: 21
Joined: Mon May 10, 2010 8:29 pm
Location: australia, perth, wa

Re: Trackpoint / pointing stick as a real joystick

#9 Post by thinkpadrobert » Sat Aug 21, 2010 12:09 pm

Well, I've made a program that'll send accelerometer data into ppjoy!!! I went back to the ppjoy IOCTLsample, read the code from the SDL accelerometer at http://www.almaden.ibm.com/cs/people/ma ... tpaps.html, and managed to put the pieces together despite knowing not very much about windows programming. Thank god the sample code was out there! If you're interested, let me know. Now I can steer cars in racing games by tilting my thinkpad! Awesome!

Radioguy
ThinkPadder
ThinkPadder
Posts: 1124
Joined: Fri Feb 29, 2008 2:45 pm
Location: New York, New Yorrrrrk

Re: Trackpoint / pointing stick as a real joystick

#10 Post by Radioguy » Sun Aug 22, 2010 11:23 am

Thanks so much. It works great on Win7 32-bit. :)
240, 380ED, 760C, 760CD, 760E, 760EL, 760LD, 760LD, 760XD, 760XD, A30, E520, G40, I1300, P53, R31, R40, R51, R52, R61, T20, T30, T40, T41, T42, T43, T43P, T60, T61, T400, T410, T420, T430, T460, X1C2, X30, X40, X220, X301 and on, and on, and on...

rubinhood
Posts: 6
Joined: Wed Oct 22, 2008 11:26 am
Location: Dublin, Ireland

Re: Trackpoint / pointing stick as a real joystick

#11 Post by rubinhood » Wed Sep 01, 2010 6:20 pm

thinkpadrobert wrote: You might be interested to know that ppjoy now includes a mouse to joystick program that works pretty well with the trackpoint.
PPJoy always had that. The problem is, that Mouse to Joystick component doesn't autocenter the joystick. So it doesn't feel like a joystick at all. For example, if you position the trackpoint to the extreme top left, then release it, it won't go back to the center when you use the standard PPJoy component. That was the reason to develop the TPJoy utility.

Did I miss something...?

BTW great job integrating PPJoy with the accelerometer!

maaslo
Posts: 1
Joined: Fri Feb 11, 2011 3:39 pm
Location: Praha (Prague) Czech Republic

Re: Trackpoint / pointing stick as a real joystick

#12 Post by maaslo » Fri Feb 11, 2011 4:51 pm

Can you please reupload the TPjoy utility and the accelerometer extension.

rubinhood
Posts: 6
Joined: Wed Oct 22, 2008 11:26 am
Location: Dublin, Ireland

Re: Trackpoint / pointing stick as a real joystick

#13 Post by rubinhood » Fri Feb 11, 2011 5:33 pm


Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “ThinkPad Utility Work Area”

Who is online

Users browsing this forum: No registered users and 7 guests