brainless-studios / alchemist

Other
2 stars 1 forks source link

Input manager #10

Open methusalah opened 8 years ago

methusalah commented 8 years ago

For now, the input of the game or editor are managed by the awful SceneInputListener interface. It allows to create input listener and plug them to the javafx scene view.

while basic implementation are provided for edit time, it's up to the user to create its own input listener to controle its game in previewtime. Nothing is made to help it in the task.

We need a more user friendly input manager that only need some parameter. Why not a singleton class where the user declares hes needed controls, binding them with keys or mouse/joystick axis.

Behind, there would be built in listeners for both preview time and edit time, and a JME one for runtime.

meltzow commented 8 years ago

any idea how to start here?

methusalah commented 8 years ago

I think we first need an input class diagram that holds everything necessary to define an input. We should look at the other public engines to take inspiration.

meltzow commented 8 years ago

I try to start here, but its really hard. I think its one of the essential needs.