Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Download Outerra Tech Demo. Unofficial Outerra Discord server, MicroProse Discord server for OWS.

Author Topic: Keyboard controls extension  (Read 7553 times)

bomber

  • Hero Member
  • *****
  • Posts: 523
  • newbie
Keyboard controls extension
« 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.
Logged
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

Levi

  • Hero Member
  • *****
  • Posts: 585
    • Outerra Mods Site!
Re: Keyboard controls extension
« Reply #1 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.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Keyboard controls extension
« Reply #2 on: February 04, 2015, 10:10:34 am »

Keyboards control extension?
That's in preparation, should appear soon.

Here's a working sheet 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.
Logged

Levi

  • Hero Member
  • *****
  • Posts: 585
    • Outerra Mods Site!
Re: Keyboard controls extension
« Reply #3 on: February 04, 2015, 10:26:32 am »

Awesome, great news Cameni!
Logged

bomber

  • Hero Member
  • *****
  • Posts: 523
  • newbie
Re: Keyboard controls extension
« Reply #4 on: February 04, 2015, 01:15:23 pm »

Tooooooooooooooo complicated.....

Just start by allowing keypress detection in java... From that we can do everything.
« Last Edit: February 04, 2015, 03:14:53 pm by bomber »
Logged
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Keyboard controls extension
« Reply #5 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) ...
Logged

bomber

  • Hero Member
  • *****
  • Posts: 523
  • newbie
Re: Keyboard controls extension
« Reply #6 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.

Logged
"If anyone ever tells you anything about an aeroplane which is so bloody complicated you can't understand it, take it from me - it's all balls" - R J Mitchell

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Keyboard controls extension
« Reply #7 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.
Logged