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 - BetokHaney

Pages: [1]
1
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: December 01, 2017, 05:31:18 pm »
I haven't bought or read through the book, but it seems likely that those numbers represent the position of those values within their corresponding enum. KeyPressed is equal to 5 in enum sf::Event::EventType (start counting from 0), and F5 is likely equal to 89 in
enum sf::Keyboard::Key


This is it!  Thank you so much.

2
General discussions / Re: SFML Game Development by Example - 4th SFML book
« on: November 30, 2017, 07:47:07 pm »
I just bought the book, and have a question regarding items in Chapter 4:

The keys.cfg file uses key numerical values for key bindings, like:

Fullscreen_toggle 5:89

...where KeyDown is represented by 5, and the F5 key by the number 89.

Where do the key number values come from?  I can't for the life of me find how the various keys on the keyboard are tied to a numerical value in SFML.

Thanks for your help.

Pages: [1]
anything