1
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: January 15, 2018, 03:31:47 am »
I'm having some problems with Chapter 4 covering the Event Manager.
At the end you should be able to move a simple texture around with Mouse Left Click and also the LShift key.
However when I load the keys.cfg I found a weird problem.
I do have my code on github:https://github.com/SanctionMan/SFML_Project/
I have went back though my code again and copy and pasted the code from the example code and I still have the same problem. I've also walked thought this form post hoping to find the same problem. Maybe I'm missing something here.
I am using SFML 2.4.2 ATM and also have changed the following that you showed in a post before here.
I'v created a function that prints out all the bindings and events in each binding and its reading them all.
At the end you should be able to move a simple texture around with Mouse Left Click and also the LShift key.
However when I load the keys.cfg I found a weird problem.
(click to show/hide)
I do have my code on github:https://github.com/SanctionMan/SFML_Project/
I have went back though my code again and copy and pasted the code from the example code and I still have the same problem. I've also walked thought this form post hoping to find the same problem. Maybe I'm missing something here.
I am using SFML 2.4.2 ATM and also have changed the following that you showed in a post before here.
if (bind->m_details.m_keyCode == -1) {
// changed != to ==
// changed != to ==
I'v created a function that prints out all the bindings and events in each binding and its reading them all.
(click to show/hide)