thinkpads.com Support Community Forum Index Bill Morrow's thinkpads.com Open Forum - The Original Thinkpad Support Forum
Follow ThinkpadsForum on Twitter
 Support this forum, shop at newmodeus.com
 Support the forum, shop at newmodeus.com
System backups occur about 7:00 am EDT and last about 10 minutes. This will slow performance. RSS feeds have been added to the forum.
Donate if you wish to:
bill at thinkpads dot com

It is currently Sun Apr 20, 2014 11:32 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Sun Mar 14, 2010 9:06 pm 
Offline

Joined: Wed Oct 22, 2008 11:26 am
Posts: 6
Location: Dublin, Ireland
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.


Top
 Profile  
 
PostPosted: Mon Mar 22, 2010 8:06 pm 
Offline
ThinkPadder
ThinkPadder

Joined: Thu Dec 06, 2007 3:17 pm
Posts: 1256
Location: NRW, Germany
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


Top
 Profile  
 
PostPosted: Mon Mar 22, 2010 8:30 pm 
Offline
ThinkPadder
ThinkPadder

Joined: Thu Dec 06, 2007 3:17 pm
Posts: 1256
Location: NRW, Germany
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


Top
 Profile  
 
PostPosted: Tue May 11, 2010 11:08 am 
Offline

Joined: Mon May 10, 2010 8:29 pm
Posts: 11
Location: australia, perth, wa
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.


Top
 Profile  
 
PostPosted: Mon May 31, 2010 3:34 pm 
Offline

Joined: Wed Oct 22, 2008 11:26 am
Posts: 6
Location: Dublin, Ireland
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.

Top
 Profile  
 
PostPosted: Sat Jul 10, 2010 12:52 am 
Offline

Joined: Mon May 10, 2010 8:29 pm
Posts: 11
Location: australia, perth, wa
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?


Top
 Profile  
 
PostPosted: Wed Jul 21, 2010 10:28 am 
Offline

Joined: Wed Oct 22, 2008 11:26 am
Posts: 6
Location: Dublin, Ireland
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.


Top
 Profile  
 
PostPosted: Sat Aug 21, 2010 12:35 am 
Offline

Joined: Mon May 10, 2010 8:29 pm
Posts: 11
Location: australia, perth, wa
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?


Top
 Profile  
 
PostPosted: Sat Aug 21, 2010 12:09 pm 
Offline

Joined: Mon May 10, 2010 8:29 pm
Posts: 11
Location: australia, perth, wa
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!


Top
 Profile  
 
PostPosted: Sun Aug 22, 2010 11:23 am 
Offline
ThinkPadder
ThinkPadder

Joined: Fri Feb 29, 2008 2:45 pm
Posts: 1019
Location: Brooklyn, New York
Thanks so much. It works great on Win7 32-bit. :)

_________________
Image T61 - 6465CTO - T7300 - 15.4" LG WSXGA+ - 4GB OCZ- 100GB 7200rpm - X3100 - Vista Hm Prm


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 6:20 pm 
Offline

Joined: Wed Oct 22, 2008 11:26 am
Posts: 6
Location: Dublin, Ireland
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!


Top
 Profile  
 
PostPosted: Fri Feb 11, 2011 4:51 pm 
Offline

Joined: Fri Feb 11, 2011 3:39 pm
Posts: 1
Location: Praha (Prague) Czech Republic
Can you please reupload the TPjoy utility and the accelerometer extension.


Top
 Profile  
 
PostPosted: Fri Feb 11, 2011 5:33 pm 
Offline

Joined: Wed Oct 22, 2008 11:26 am
Posts: 6
Location: Dublin, Ireland
Here ya go:
http://www.mediafire.com/file/s9tu9bq8d15kcy9/TPJoy1.0.zip


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group