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
'repeat' flag on SDL_KeyboardEvent not being set on 2.0.5
Daniel Ribeiro Maciel
Guest

Hi guys,

I've recently upgraded from 2.0.4 to 2.0.5 and noticed the 'repeat' flag on SDL_KeyboardEvent is not being set properly anymore on my system.


I'm using Ubuntu 16.04, with the X11 backend (XLIB).


I've tried to create a bug report on bugzilla but I couldn't set the version to 2.0.5 there.


Best regards,
Daniel
'repeat' flag on SDL_KeyboardEvent not being set on 2.0.5
Alex Baines
Guest

Hmm, some patches I wrote that made it into 2.0.5 related to x11
keyboard code, so this may be my fault.

I tried to reproduce the behaviour locally using the checkkeys test, but
that shows key repeats correctly.

Maybe using 'hg bisect' with checkkeys could help you locate the commit
that introduced this.

Alex.

On 25/10/16 00:12, Daniel Ribeiro Maciel wrote:
Quote:
Hi guys,

I've recently upgraded from 2.0.4 to 2.0.5 and noticed the 'repeat' flag on
SDL_KeyboardEvent is not being set properly anymore on my system.

I'm using Ubuntu 16.04, with the X11 backend (XLIB).

I've tried to create a bug report on bugzilla but I couldn't set the
version to 2.0.5 there.

Best regards,
Daniel



_______________________________________________
SDL mailing list

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

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
'repeat' flag on SDL_KeyboardEvent not being set on 2.0.5
Daniel Ribeiro Maciel
Guest

Found the culprit:

changeset:   10500:c3874aa1f2d1
user:        Sam Lantinga
date:        Sat Oct 08 11:30:07 2016 -0700
summary:     Fixed building and using fcitx IME support on Linux



Trying to figure out what is wrong with it.






On Mon, Oct 24, 2016 at 11:06 PM, Alex Baines wrote:
Quote:
Hmm, some patches I wrote that made it into 2.0.5 related to x11
keyboard code, so this may be my fault.

I tried to reproduce the behaviour locally using the checkkeys test, but
that shows key repeats correctly.

Maybe using 'hg bisect' with checkkeys could help you locate the commit
that introduced this.

Alex.

On 25/10/16 00:12, Daniel Ribeiro Maciel wrote:
Quote:
Hi guys,

I've recently upgraded from 2.0.4 to 2.0.5 and noticed the 'repeat' flag on
SDL_KeyboardEvent is not being set properly anymore on my system.

I'm using Ubuntu 16.04, with the X11 backend (XLIB).

I've tried to create a bug report on bugzilla but I couldn't set the
version to 2.0.5 there.

Best regards,
Daniel





Quote:
_______________________________________________
SDL mailing list

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

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
'repeat' flag on SDL_KeyboardEvent not being set on 2.0.5
Daniel Ribeiro Maciel
Guest

Apparently the problem is that now I'm forced to have either HAVE_IBUS_IBUS_H or HAVE_FCITX_FRONTEND_H defined.

I think SDL now expects ibus headers installed (or fcitx dev) otherwise new_xmods will not be set to "@im=none" which is the cause of the problem.


I'm forcing has_dbus_ime_support to SDL_TRUE and everthing works as expected.



If I install libibus-dev everything works as expected but I see no reason to require ibus headers if they are not really required in this case?






On Tue, Oct 25, 2016 at 12:05 AM, Daniel Ribeiro Maciel wrote:
Quote:
Found the culprit:

changeset:   10500:c3874aa1f2d1
user:        Sam Lantinga
date:        Sat Oct 08 11:30:07 2016 -0700
summary:     Fixed building and using fcitx IME support on Linux



Trying to figure out what is wrong with it.






On Mon, Oct 24, 2016 at 11:06 PM, Alex Baines wrote:
Quote:
Hmm, some patches I wrote that made it into 2.0.5 related to x11
keyboard code, so this may be my fault.

I tried to reproduce the behaviour locally using the checkkeys test, but
that shows key repeats correctly.

Maybe using 'hg bisect' with checkkeys could help you locate the commit
that introduced this.

Alex.

On 25/10/16 00:12, Daniel Ribeiro Maciel wrote:
Quote:
Hi guys,

I've recently upgraded from 2.0.4 to 2.0.5 and noticed the 'repeat' flag on
SDL_KeyboardEvent is not being set properly anymore on my system.

I'm using Ubuntu 16.04, with the X11 backend (XLIB).

I've tried to create a bug report on bugzilla but I couldn't set the
version to 2.0.5 there.

Best regards,
Daniel





Quote:
_______________________________________________
SDL mailing list

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

_______________________________________________
SDL mailing list

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





'repeat' flag on SDL_KeyboardEvent not being set on 2.0.5
Daniel Ribeiro Maciel
Guest

I have added libibus-1.0-dev to my bootstrap script here. Thanks for the help Alex.

Best regards,
Daniel


On Tue, Oct 25, 2016 at 12:33 AM, Daniel Ribeiro Maciel wrote:
Quote:
Apparently the problem is that now I'm forced to have either HAVE_IBUS_IBUS_H or HAVE_FCITX_FRONTEND_H defined.

I think SDL now expects ibus headers installed (or fcitx dev) otherwise new_xmods will not be set to "@im=none" which is the cause of the problem.


I'm forcing has_dbus_ime_support to SDL_TRUE and everthing works as expected.



If I install libibus-dev everything works as expected but I see no reason to require ibus headers if they are not really required in this case?






On Tue, Oct 25, 2016 at 12:05 AM, Daniel Ribeiro Maciel wrote:
Quote:
Found the culprit:

changeset:   10500:c3874aa1f2d1
user:        Sam Lantinga
date:        Sat Oct 08 11:30:07 2016 -0700
summary:     Fixed building and using fcitx IME support on Linux



Trying to figure out what is wrong with it.






On Mon, Oct 24, 2016 at 11:06 PM, Alex Baines wrote:
Quote:
Hmm, some patches I wrote that made it into 2.0.5 related to x11
keyboard code, so this may be my fault.

I tried to reproduce the behaviour locally using the checkkeys test, but
that shows key repeats correctly.

Maybe using 'hg bisect' with checkkeys could help you locate the commit
that introduced this.

Alex.

On 25/10/16 00:12, Daniel Ribeiro Maciel wrote:
Quote:
Hi guys,

I've recently upgraded from 2.0.4 to 2.0.5 and noticed the 'repeat' flag on
SDL_KeyboardEvent is not being set properly anymore on my system.

I'm using Ubuntu 16.04, with the X11 backend (XLIB).

I've tried to create a bug report on bugzilla but I couldn't set the
version to 2.0.5 there.

Best regards,
Daniel





Quote:
_______________________________________________
SDL mailing list

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

_______________________________________________
SDL mailing list

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










'repeat' flag on SDL_KeyboardEvent not being set on 2.0.5
Ryan C. Gordon
Guest

Quote:
If I install libibus-dev everything works as expected but I see no
reason to require ibus headers if they are not really required in this case?

This is probably an unintentional bug. I've added a "2.0.5" version to
Bugzilla; if you get a moment, please file a bug and we'll look into this!

Thanks,
--ryan.


_______________________________________________
SDL mailing list

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


Joined: 24 Jun 2015
Posts: 2
This is possibly related to https://bugzilla.libsdl.org/show_bug.cgi?id=3472
'repeat' flag on SDL_KeyboardEvent not being set on 2.0.5
Daniel Ribeiro Maciel
Guest

Yes, I got key repeated key up and down events. It is the same bug.

On Thu, Oct 27, 2016 at 7:10 AM, sezero wrote:
Quote:
This is possibly related to https://bugzilla.libsdl.org/show_bug.cgi?id=3472


_______________________________________________
SDL mailing list

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