Joystick suggestion

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
OSH
Dangerous
Dangerous
Posts: 124
Joined: Thu Dec 04, 2008 2:57 pm
Location: Poland, Lave Station :)
Contact:

Joystick suggestion

Post by OSH »

Well. I have weird ideas always...
I want to play original Elite (under Vice/CCS64) and simultaneously (:lol:) Oolite. But If I move joystick in Oolite, the same move is in Elite under emulation. Is it possible, disabling joystick moving detection, when it is inactive?
A4000 060/50, 16 MB RAM, A1200 E/BOX Tower, Apollo 1240/25 MHz 34 MB RAM, HDD 40 GB; LiteOn 52x32x52, A1200 E1230/40 18 MB RAM, CD-32+SX-1 10 MB RAM, A500, CDTV, A600, C-64, C-64+1541-II, C-64G, C-16
Still hunting in Edriuson (G3) for Deadly status...
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Joystick suggestion

Post by CommRLock78 »

OSH wrote:
Well. I have weird ideas always...
I want to play original Elite (under Vice/CCS64) and simultaneously (:lol:) Oolite. But If I move joystick in Oolite, the same move is in Elite under emulation. Is it possible, disabling joystick moving detection, when it is inactive?
Where do you get the kernal for that VICE? I figured it out once before, but can't seem to again :(
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Joystick suggestion

Post by Diziet Sma »

CommRLock78 wrote:
Where do you get the kernal for that VICE? I figured it out once before, but can't seem to again :(
You have a PM.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
OSH
Dangerous
Dangerous
Posts: 124
Joined: Thu Dec 04, 2008 2:57 pm
Location: Poland, Lave Station :)
Contact:

Re: Joystick suggestion

Post by OSH »

Hey, and what with my question? :idea:
A4000 060/50, 16 MB RAM, A1200 E/BOX Tower, Apollo 1240/25 MHz 34 MB RAM, HDD 40 GB; LiteOn 52x32x52, A1200 E1230/40 18 MB RAM, CD-32+SX-1 10 MB RAM, A500, CDTV, A600, C-64, C-64+1541-II, C-64G, C-16
Still hunting in Edriuson (G3) for Deadly status...
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Joystick suggestion

Post by Diziet Sma »

Sorry OSH, so far as your question goes, I don't really have any idea..

in fact, to be honest, I'm not entirely sure what it is you're trying to do..
OSH wrote:
I want to play original Elite (under Vice/CCS64) and simultaneously (:lol:) Oolite. But If I move joystick in Oolite, the same move is in Elite under emulation. Is it possible, disabling joystick moving detection, when it is inactive?
Are you trying to disable the emulated Elite from responding to the joystick, or Oolite?
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
OSH
Dangerous
Dangerous
Posts: 124
Joined: Thu Dec 04, 2008 2:57 pm
Location: Poland, Lave Station :)
Contact:

Re: Joystick suggestion

Post by OSH »

Yes and no. I want disabling joystick detection TEMPORARY: if I make a window with Elite active, Oolite shouldn't detect joystick's moves and vice versa. But game should continue working.
A4000 060/50, 16 MB RAM, A1200 E/BOX Tower, Apollo 1240/25 MHz 34 MB RAM, HDD 40 GB; LiteOn 52x32x52, A1200 E1230/40 18 MB RAM, CD-32+SX-1 10 MB RAM, A500, CDTV, A600, C-64, C-64+1541-II, C-64G, C-16
Still hunting in Edriuson (G3) for Deadly status...
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Joystick suggestion

Post by Diziet Sma »

Hmm.. that would require some pretty core changes. If it can even be done. And all for just one person to do what sounds like a rather strange thing? I don't like your chances of seeing this happen.

(Out of curiosity, why exactly are you trying to do this? Playing two versions of the same game simultaneously? :shock: )

Edit to add: For that matter, why don't you just pause Oolite when you swap to Elite? It's not like you can really focus on both at once anyway..
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
OSH
Dangerous
Dangerous
Posts: 124
Joined: Thu Dec 04, 2008 2:57 pm
Location: Poland, Lave Station :)
Contact:

Re: Joystick suggestion

Post by OSH »

Well, one guy claims, it is possible with VICE without changing core program. But he remains silent.
Why I want do this? Well. Something in Elite isn't possible to speed up the time - and one flight takes a long time. Then I can play Oolite, without stopping Elite - Cobra MK III in Elite will continue fly, and I can play Oolite. I know, it sounds weird, but I want this :)
Last edited by OSH on Tue Jan 15, 2013 8:18 pm, edited 1 time in total.
A4000 060/50, 16 MB RAM, A1200 E/BOX Tower, Apollo 1240/25 MHz 34 MB RAM, HDD 40 GB; LiteOn 52x32x52, A1200 E1230/40 18 MB RAM, CD-32+SX-1 10 MB RAM, A500, CDTV, A600, C-64, C-64+1541-II, C-64G, C-16
Still hunting in Edriuson (G3) for Deadly status...
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Joystick suggestion

Post by CommRLock78 »

OSH wrote:
Well, one guy claims, it is possible with VICE without changing core program. But he remains still.
Why I want do this? Well. Something in Elite isn't possible to speed up the time - and one flight takes a long time. Then I can play Oolite, without stopping Elite - Cobra MK III in Elite will continue fly, and I can play Oolite. I know, it sounds weird, but I want this :)
Out of curiosity, have you ran both without worrying about joysticks? Will they both run simultaneously? If so, what happens when you do try using a joystick- is one game taking priority over the other in claiming the joystick?
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
OSH
Dangerous
Dangerous
Posts: 124
Joined: Thu Dec 04, 2008 2:57 pm
Location: Poland, Lave Station :)
Contact:

Re: Joystick suggestion

Post by OSH »

Yes. Both games run simultaneously - I have one joystick (QuickShot Python, attached to USB via USB-pad) - If I make move with this joystick, both game detect it, and Cobra in both game change flight course. I can't find whether one game takes the priority over other...
A4000 060/50, 16 MB RAM, A1200 E/BOX Tower, Apollo 1240/25 MHz 34 MB RAM, HDD 40 GB; LiteOn 52x32x52, A1200 E1230/40 18 MB RAM, CD-32+SX-1 10 MB RAM, A500, CDTV, A600, C-64, C-64+1541-II, C-64G, C-16
Still hunting in Edriuson (G3) for Deadly status...
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Joystick suggestion

Post by CommRLock78 »

OSH wrote:
Yes. Both games run simultaneously - I have one joystick (QuickShot Python, attached to USB via USB-pad) - If I make move with this joystick, both game detect it, and Cobra in both game change flight course. I can't find whether one game takes the priority over other...
I actually assumed in this situation one game would take priority - I never considered that both games would detect it :oops: :(. What about the in-game joystick configuration? (I've never used a joystick with Oolite, so I don't know exactly what the options are). It seems like game controllers should be able to be toggled on or off - but I could easily be wrong about this too :P.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Joystick suggestion

Post by Diziet Sma »

I do use a joystick with Oolite, and no, there is no way to toggle it on and off, in-game. If the 'stick is detected, Oolite will use it, unless you de-configure all the 'stick settings each time. I imagine it's much the same for VICE/Elite.

Turning the joystick on/off in VICE is possible, but that only solves half the problem. (and may cause problems if done during a game, I don't know without trying it)

I'd imagine that things work correctly if playing by keyboard, as Oolite in inactive-windowed mode ignores keypresses. It does therefore make sense that in inactive-windowed mode it should ignore the joystick as well.

Where's a Dev when you need them? :lol:
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Joystick suggestion

Post by cim »

Diziet Sma wrote:
I'd imagine that things work correctly if playing by keyboard, as Oolite in inactive-windowed mode ignores keypresses. It does therefore make sense that in inactive-windowed mode it should ignore the joystick as well.
Yeah. The keypresses is your OS's responsibility, though. Oolite never receives the press if it's in an inactive window. I'd have thought other input devices worked the same way, but maybe not. (And I don't own a joystick, so there's not much I can do to test this, unfortunately)

Hmm... that suggests a possible solution - use a joystick-keyboard translation program, and just make sure all relevant keys in both games are mapped to the same keyboard key.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Joystick suggestion

Post by Diziet Sma »

cim wrote:
Hmm... that suggests a possible solution - use a joystick-keyboard translation program, and just make sure all relevant keys in both games are mapped to the same keyboard key.
Excellent idea!

Since it's not really clear if OSH is using Linux or Windows (VICE is available for both platforms) here are some joystick-to-keypress programs for both platforms:

QJoyPad and Rejoystick provide controller to keypress translation for Linux.

JoyToKey and Xpadder do the same for Windows.

(Note that Xpadder is not free, but at $10 is good value, and it's a very versatile program. I have it installed on my Windows laptop)
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Joystick suggestion

Post by Commander McLane »

OSH wrote:
Well, one guy claims, it is possible with VICE without changing core program. But he remains silent.
Why I want do this? Well. Something in Elite isn't possible to speed up the time - and one flight takes a long time. Then I can play Oolite, without stopping Elite - Cobra MK III in Elite will continue fly, and I can play Oolite. I know, it sounds weird, but I want this :)
The Torus drive exists in Elite as well, so there's no need to speed up time.
Post Reply