Outerra forum

Anteworld - Outerra Game => Tech demo, support, updates => Topic started by: bomber on February 04, 2015, 08:20:47 am

Title: Keyboard controls extension
Post by: bomber on February 04, 2015, 08:20:47 am
Quote
lights support in vehicle and aircraft (see T817 script)
vehicle script actions getting kbd modifiers to expand key actions
T817 L - front lights, left-shift-L - cabin light

Keyboards control extension?

If so thank you very much.
Title: Re: Keyboard controls extension
Post by: Levi on February 04, 2015, 08:23:17 am
Quote
lights support in vehicle and aircraft (see T817 script)
vehicle script actions getting kbd modifiers to expand key actions
T817 L - front lights, left-shift-L - cabin light

Keyboards control extension?

If so thank you very much.
I think it's only for ground vehicles/watercraft, unfortunately. I could be wrong, though.
Title: Re: Keyboard controls extension
Post by: cameni on February 04, 2015, 10:10:34 am
Keyboards control extension?
That's in preparation, should appear soon.

Here's a working sheet (https://docs.google.com/spreadsheets/d/16EqiyJfjFjQmc7FlQjArb9-BLWUq-1OX-tuU1PYZIDc/edit?usp=sharing) with bindable aircraft actions (default), inspired by x-plane.
Those on/off variants and left-center-right will be probably handled by a single action handler receiving different values, but bindable to separate buttons.

Note this is meant to be just the base list, nothing will prevent adding custom controls, both into aircraft scripts and into iomap configuration files. However, the base list should provide the most common controls, so feel free to suggest what should be there, and also what should not.
Title: Re: Keyboard controls extension
Post by: Levi on February 04, 2015, 10:26:32 am
Awesome, great news Cameni!
Title: Re: Keyboard controls extension
Post by: bomber on February 04, 2015, 01:15:23 pm
Tooooooooooooooo complicated.....

Just start by allowing keypress detection in java... From that we can do everything.
Title: Re: Keyboard controls extension
Post by: cameni on February 04, 2015, 02:56:20 pm
That won't work. First, vehicle/aircraft scripts (javascript) are standalone and have no connection to the Windows input system, so we would have to route the key presses into scripts in some way. Second, it would be really bad if keys were hard coded in scripts, unable to be bound to different devices (joystick buttons) ...
Title: Re: Keyboard controls extension
Post by: bomber on February 04, 2015, 03:22:21 pm
I think you're misunderstanding what can be for done in jsbsim....

It wouldn't shackle you to allow each vehicle access to keypress control, but rather give you massive flexibility.... Not just aircraft, but spacecraft or even a sailing yacht done in jsbsim.

Title: Re: Keyboard controls extension
Post by: cameni on February 04, 2015, 03:38:38 pm
I know that JSBSim can do a lot physics-wise, but tying it to a rigid and limiting input system instead of a configurable one just doesn't make sense. Besides, JSBSim is but one simulation core running under OT, so a universal input system is a necessity.