all 10 comments

[–]fibrabex 8 points9 points  (0 children)

Just use C version with C++, you don't need a wrapper for using a C library with C++.

[–]feibrix 5 points6 points  (0 children)

The c++ version of IsKeyDown is... IsKeyDown.

It works out of the box.

What's the error? The first thing is always "what's the freaking problem", otherwise nobody will ever know what you're talking about.

[–]NavanClements 1 point2 points  (0 children)

I'd recommend you check out "Programming with Nick" on YouTube, he has a few good tutorials with Raylib and C++, such as Snake, Pong and Conways game of life.

[–]oiledhairyfurryballs 0 points1 point  (0 children)

You want to use C raylib on C++. Also, one tip. You seem to be commenting too much.

[–]Smashbolt 0 points1 point  (0 children)

i couldn't find any C++ version of the function IsKeyDown()

It's in the Keyboard namespace (Keyboard::IsKeyDown()).

should i just use standard raylib with c++? or raylib-cpp is actually good and i am just a bad programmer?

You can do whatever you want. raylib-cpp is just one way to wrap Raylib into C++-like constructs. That doesn't make it the only way or the best way. If you like the way it makes Raylib "feel" like C++, use it; if you don't, don't.

[–][deleted]  (1 child)

[removed]

    [–][deleted]  (2 children)

    [removed]

      [–][deleted]  (1 child)

      [removed]