eugeneloza / decoherence

Project moved to https://gitlab.com/EugeneLoza/decoherence
GNU General Public License v3.0
10 stars 7 forks source link

Remake DPlayerControl.MoveKeyPress idea #509

Closed eugeneloza closed 6 years ago

eugeneloza commented 6 years ago

PlayerControl should not be aware of the input method (keyboard, mouse drag or joystick). Move all key-related stuff to Input and PlayerControl only take care of Forward/Backward/StrafeLeft/StrafeRight acceleration.

eugeneloza commented 6 years ago

Yes, keypresses should be handled completely in DecoKeyboard and pass only resulting accelerations to the PlayerControl with equal approach in DecoGamepad and (?)DecoInterfacePropulsion.