JoseTomasTocino / freegemas

Freegemas is an open source version of the well known Bejeweled, built in C++ using SDL2
GNU General Public License v2.0
61 stars 18 forks source link

Add keyboard controls #4

Closed sharkwouter closed 3 years ago

sharkwouter commented 3 years ago

Being able to control the game with the keyboard as well is a bit more comfortable and it makes easier to port it to different systems. I want to try to port this game to the Playstation Vita later. For now this adds the following:

What needs to be changed is that using the keyboard should deactivate the mouse until it is moved again and some additional functions are needed to get rid of some duplicate code. That I'm still working on.

JoseTomasTocino commented 3 years ago

Good job @sharkwouter ! Looking forward to the finished pull request, looking good!

sharkwouter commented 3 years ago

Okay, this should be good now. I've added the following the the last few commits:

Please let me know if you find any issues with testing.