SFML community forums
Help => General => Topic started by: madcat on August 19, 2014, 10:35:44 am
-
Hi,
I was playing with the example and I thought, hey! Is there any elegant way to modify the existing Command structure to control the plane with the mouse as well as the keyboard.
The problem of course is that the mouse x,y or the delta movement has to be sent with the command action every Command.
That's where I got stuck.
-
The modification would not have to be part of Command -- which is only a class to deliver messages/events to the entities -- but rather Player, where the input is generated. Instead of reacting to the arrow keys, you could evaluate the mouse movement.
By the way, please post in the Help section if you need help, not in General Discussions.