Joystick via PyJoy?

New releases and general discussions.

Post » Sun Aug 29, 2010 9:26 am

Okay so... I've noticed a lot of work in the Python side, and it seems now you could build your exe and have Construct copy the correct .py files.

Does this mean we can reliably use PyJoy to add PC Joystick support to our games?
(please say yes.... and how :P)
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Sun Aug 29, 2010 2:42 pm

I didn't think PyJoy supported windows? If it does, it should be pretty easy to export the library following the guide in the Tutorials section.

Actually, ever since .99.84 Construct supported external libraries so it's been possible for awhile to have Joystick support using PyGame. It's just that this recent version fixes ALOT of Python bugs, especially the Path bug that was affecting Tulamide, alee, and probably countless others.

So, .99.93 is pretty much mandatory now if you want good Python support... I don't have a Joystick handy, but when I get it in I'll work up a quick airplane shooter, an post .cap, with it using Pygame.
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Sun Aug 29, 2010 6:20 pm

Sweet. I've been waiting for an example of this for a while.
B
2
G
3
Posts: 52
Reputation: 954

Post » Sun Aug 29, 2010 8:09 pm

[quote="scidave":1ovg7tsa]I don't have a Joystick handy, but when I get it in I'll work up a quick airplane shooter, an post .cap, with it using Pygame.[/quote:1ovg7tsa]
You'll be my hero.
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Mon Aug 30, 2010 3:47 pm

scidave is right, PyJoy seems only to be Linux. But I think a Plugin could be easyly built using DirectX.
B
3
S
1
G
2
Posts: 80
Reputation: 985

Post » Wed Sep 01, 2010 2:26 pm

By the way, I'm looking into building a Joystick plugin with OIS and it seems that it will work, theoretically but technically don't know yet . I'll post on the forum the first alpha version when it's ready.
B
3
S
1
G
2
Posts: 80
Reputation: 985

Post » Wed Sep 01, 2010 8:16 pm

I got pygame directx controls to work on an older version a while ago.
if no one's posted a working solution by this weekend, I'll find that cap and post it
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Thu Sep 02, 2010 12:08 am

Why not just use lucid's Xbox 360 controller? I know that it is different than a full fledged joystick but may make the game more universally accepted and may be more stable in the future.
B
28
S
8
G
8
Posts: 530
Reputation: 7,154

Post » Thu Sep 02, 2010 1:11 am

here goes directinput controls through pygame:
[url:37lao3nv]http://www.scirra.com/forum/viewtopic.php?f=16&t=7196[/url:37lao3nv]
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests