1
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.
Pages: [1]
2
Window / Re: sf::Event::TextEvent producing '\v' when Enter is pressed, instead of '\n'?
« on: March 12, 2015, 12:26:56 am »
Ok, would you please link this kind of information to the documentation, because it is not clear as it currently stands. I never stumbled on that tutorial as I looked at your docs.
3
Window / Re: sf::Event::TextEvent producing '\v' when Enter is pressed, instead of '\n'?
« on: March 12, 2015, 12:13:30 am »
Another example of standard text input:
I guess I'm just saying it would be nice if you adhered to what other APIs are doing for text events, call it some other event type, or EMPHATICALLY state what your function is doing.
int
SDL_SendKeyboardText(const char *text)
{
SDL_Keyboard *keyboard = &SDL_keyboard;
int posted;
/* Don't post text events for unprintable characters */
if ((unsigned char)*text < ' ' || *text == 127) {
return 0;
}
SDL_SendKeyboardText(const char *text)
{
SDL_Keyboard *keyboard = &SDL_keyboard;
int posted;
/* Don't post text events for unprintable characters */
if ((unsigned char)*text < ' ' || *text == 127) {
return 0;
}
I guess I'm just saying it would be nice if you adhered to what other APIs are doing for text events, call it some other event type, or EMPHATICALLY state what your function is doing.
4
Window / Re: sf::Event::TextEvent producing '\v' when Enter is pressed, instead of '\n'?
« on: March 11, 2015, 11:58:39 pm »
Sorry, much of my anger is because of some guy in my project being an SFML purist. It's just that when you say TextEvent - I expect text:
void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint, int mods, int plain)
{
if (codepoint < 32 || (codepoint > 126 && codepoint < 160))
return;
// ...
{
if (codepoint < 32 || (codepoint > 126 && codepoint < 160))
return;
// ...
5
Window / Re: sf::Event::TextEvent producing '\v' when Enter is pressed, instead of '\n'?
« on: March 11, 2015, 03:14:51 pm »
I'm gonna post this here since it's kinda on the same topic:
WTF SFML!!!!! You send enter/tab/backspace as text events... really? I converted a text handler to an SFML implementation (it works perfectly with SDL and GLFW text events), and lo and behold... it doesn't work as I planned. Thank you dev(s). ..|.. You really followed the standard.
WTF SFML!!!!! You send enter/tab/backspace as text events... really? I converted a text handler to an SFML implementation (it works perfectly with SDL and GLFW text events), and lo and behold... it doesn't work as I planned. Thank you dev(s). ..|.. You really followed the standard.
Pages: [1]