The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL 2 - keyboard focus on Windows 8.1 PC
Alex Dănilă
Guest

Hi,

Using SDL2-widgets together with SDL 2.0.4 I can't get any keyboard events.

Assuming this is a focus problem I tried constructing XAML controls as swapChainPanel children that stretched over its entire area, or the other way around, make the swapChainPanel a child. No matter what configuration, the application behaves exactly the same, and gets only mouse events.


What could be the problem and what could I have missed about using SDL2 on Windows 8.1?


Thanks
SDL 2 - keyboard focus on Windows 8.1 PC
Sam Lantinga


Joined: 10 Sep 2009
Posts: 1765
Is it a problem specific to your widget library? Do the SDL test programs have any issues? I haven't heard of missing keyboard input on any platform.

On Fri, Oct 17, 2014 at 2:09 AM, Alex Dănilă wrote:
Quote:
Hi,

Using SDL2-widgets together with SDL 2.0.4 I can't get any keyboard events.

Assuming this is a focus problem I tried constructing XAML controls as swapChainPanel children that stretched over its entire area, or the other way around, make the swapChainPanel a child. No matter what configuration, the application behaves exactly the same, and gets only mouse events.


What could be the problem and what could I have missed about using SDL2 on Windows 8.1?


Thanks


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Re: SDL 2 - keyboard focus on Windows 8.1 PC
DLudwig


Joined: 09 Feb 2012
Posts: 179
Alex Dănilă wrote:
Assuming this is a focus problem I tried constructing XAML controls as swapChainPanel children that stretched over its entire area, or the other way around, make the swapChainPanel a child. No matter what configuration, the application behaves exactly the same, and gets only mouse events.


What could be the problem and what could I have missed about using SDL2 on Windows 8.1?


Do you know which port of SDL you are using? Two exist for Windows: Win32 (for writing "desktop" apps, and apps that are compatible with pre-Win 8.x versions of Windows), and WinRT (for Windows Store apps).

Cheers,
-- David L.
SDL 2 - keyboard focus on Windows 8.1 PC
Alex Dănilă
Guest

It's the WinRT one. When I get access to the Windows machine I'll check
the SDL test programs.

Thanks

On 10/19/2014 05:41 AM, DLudwig wrote:
Quote:







Alex Dănilă wrote:
Assuming this is a focus problem I tried constructing XAML controls as
swapChainPanel children that stretched over its entire area, or the
other way around, make the swapChainPanel a child. No matter what
configuration, the application behaves exactly the same, and gets only
mouse events.


What could be the problem and what could I have missed about using SDL2
on Windows 8.1?



Do you know which port of SDL you are using? Two exist for Windows:
Win32 (for writing "desktop" apps, and apps that are compatible with
pre-Win 8.x versions of Windows), and WinRT (for Windows Store apps).

Cheers,
-- David L.


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org