fdesjardins / webgl

Examples, tutorials, mini-projects, ...
https://fdesjardins.github.io/webgl/
MIT License
4 stars 1 forks source link

[TODO] io mapping module #2

Open ubernaut opened 4 years ago

ubernaut commented 4 years ago

module which demonstrates how to switch between input and output systems depending on what is available

output examples: desktop vs mobile vs vr

input examples kb+mouse vs gamepad vs VR controls vs moble accelerometer

ubernaut commented 4 years ago

the way I see it, Each sim should present a 'control interface' which is a set of functions that control aspects of the simulation.

Sim devs would define a map from each relevant input event to each function in the control interface.

alternatively standard maps for typical controls could also exist,

(WASD | left analog stick ) => camera ( Forward, Left strafe, Backward, Right Strafe)

(mouse xy | right analog stick | VR HMD motion) => camera (rotate)