Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ToneXum

Pages: [1]
1
General / Re: VS Code cannot open .hpp files even with correct include Path
« on: December 12, 2022, 06:27:15 pm »
Great, for some reason Visual Studio is telling me the same thing  ::)

EDIT: Nevermind it works for Visual Studio now...

2
General / Re: VS Code cannot open .hpp files even with correct include Path
« on: December 12, 2022, 05:48:04 pm »
I tried the stuff with cmake but it seems like it doesnt feel like working right now. Ill stick to Visual Studio for now

3
General / VS Code cannot open .hpp files even with correct include Path
« on: December 11, 2022, 07:49:39 pm »
I have recently switched from using Visual Studio Community (The purple one everyone uses) to Visual Studio Code (the blue one). Problem is that in the "c_cpp_properties.json" file i have to specify some additional include directories. I did but intelliSense is still telling me that the .hpp files in the include/SFML directory cannot be opened.

So I tried something. Just created another .hpp file and put it in the directory of basicly every other .hpp file. For some reason it works.

So VS Code doesnt like the SFML exclusive header files or something?
Or do I have forgotten some Setting?

4
I have found out that the problem is not the false firing of the if statement wich controlles the acutall input but rather the false firing of the resetting.

In the code you can see that whenever a key is released it sets the movement to false wich ultimatly ruined my code.

Thanks to G. anyways for responding.

5
That with the cout is really my bad, defenetly could have seen that one ::)

I have also changed the "if" so that it uses "isKeyPressed" (just like in the tutorial)

Lastly, I let it print out whenever the if statemant for the "KeyReleased" fires

Problem is, whenever anything happenes (any event is called, like moving your mouse), it suddently says that all the if statements are true.

So the problem remains.

By the way, thanks for your quick response :)

6
Hello,

I've just recently tried to check for specific keypress on my keyboard.

Problem is that the statement returns true even if the key, the method supposed to check is not pressed.

In the code bellow you can see I've tried different methods (wich I have commented out) and I have always gotten the same result.

And just for context, I have tried moving a rectangle here.

This is the entire Code.

(click to show/hide)

Code was Edited 1 time

The Result: The rectangle doesnt move

The output even states that with every event that happenes "accelRight" becomes true, even if the event is not pressing the F key.

Any help is much appreciated,

Thanks

Pages: [1]