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.


Topics - SneakySnake

Pages: [1]
1
Window / [potential fix] X11: Tilde key not getting detected
« on: January 23, 2013, 10:24:28 pm »
I was wondering why SFML doesn't detect the tilde key, so I looked into it.

I looked at the implementation, and the underlying X11 symbol for tilde in SFML is XK_dead_grave.
I launched the xev utility, and looked at what it says when I press the tilde key.
It says XK_grave.

So I modified the implementation (both WindowImpl and InputImpl) to use XK_grave instead of XK_dead_grave, and now the Tilde key works in both cases. Another user also confirmed that it works with XK_grave for him.

Perhaps both XK_dead_grave and XK_grave could be accepted, unless there are preventing factors that I am not aware of.

EDIT: Yeah, the InputImpl got a bit hacky when taking both into account, but the WindowImpl is a clean fix.
At least that could be incorporated to make users' life easier until they wait for 2.x.

[attachment deleted by admin]

Pages: [1]
anything