Page 1 of 2

Joystick suggestion

Posted: Fri Jan 11, 2013 10:06 pm
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?

Re: Joystick suggestion

Posted: Sat Jan 12, 2013 1:44 am
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 :(

Re: Joystick suggestion

Posted: Sat Jan 12, 2013 5:16 am
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.

Re: Joystick suggestion

Posted: Mon Jan 14, 2013 4:52 pm
by OSH
Hey, and what with my question? :idea:

Re: Joystick suggestion

Posted: Mon Jan 14, 2013 6:33 pm
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?

Re: Joystick suggestion

Posted: Mon Jan 14, 2013 10:22 pm
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.

Re: Joystick suggestion

Posted: Tue Jan 15, 2013 5:34 am
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..

Re: Joystick suggestion

Posted: Tue Jan 15, 2013 6:45 pm
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 :)

Re: Joystick suggestion

Posted: Tue Jan 15, 2013 7:38 pm
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?

Re: Joystick suggestion

Posted: Tue Jan 15, 2013 8:21 pm
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...

Re: Joystick suggestion

Posted: Tue Jan 15, 2013 8:41 pm
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.

Re: Joystick suggestion

Posted: Wed Jan 16, 2013 3:44 am
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:

Re: Joystick suggestion

Posted: Wed Jan 16, 2013 7:56 am
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.

Re: Joystick suggestion

Posted: Wed Jan 16, 2013 3:18 pm
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)

Re: Joystick suggestion

Posted: Wed Jan 16, 2013 9:35 pm
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.