Discussion:
[SDL] Hash key on Macbook Pro (OSX 10.11.6)
Peter Vince
2016-09-19 17:20:42 UTC
Permalink
I'm trying to use an application on a Macbook Pro with a British keyboard, that has been written with SDL. That laptop has no direct key for the Hash (#) character, and I normally need to press ALT-3 to get that character. But it appears SDL is trapping the ALT key, so preventing me using that character - unless I cut-and-paste it from another Mac application.

Has this been noticed before, and is there a work-around please?

Thank you
Jonathan Dearborn
2016-10-01 17:29:13 UTC
Permalink
Is this happening for an SDL_TEXTINPUT event?

Jonny D
Post by Peter Vince
I'm trying to use an application on a Macbook Pro with a British keyboard,
that has been written with SDL. That laptop has no direct key for the Hash
(#) character, and I normally need to press ALT-3 to get that character.
But it appears SDL is trapping the ALT key, so preventing me using that
character - unless I cut-and-paste it from another Mac application.
Has this been noticed before, and is there a work-around please?
Thank you
_______________________________________________
SDL mailing list
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Peter Vince
2016-10-01 20:04:12 UTC
Permalink
Hi Jonny. Thanks for your reply. Short answer - yes.

Peter
Post by Jonathan Dearborn
Is this happening for an SDL_TEXTINPUT event?
Jonny D
I'm trying to use an application on a Macbook Pro with a British keyboard, that has been written with SDL. That laptop has no direct key for the Hash (#) character, and I normally need to press ALT-3 to get that character. But it appears SDL is trapping the ALT key, so preventing me using that character - unless I cut-and-paste it from another Mac application.
Has this been noticed before, and is there a work-around please?
Thank you
_______________________________________________
SDL mailing list
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
Peter Vince
2016-10-02 07:44:45 UTC
Permalink
Hi Jonny,

Yes - this is the code segment being used:

case SDL_TEXTINPUT:
i = 0;
while (ev.text.text[i] != '\0')
putkey(ev.text.text[i++]) ;
break ;

Regards,

Peter
Post by Jonathan Dearborn
Is this happening for an SDL_TEXTINPUT event?
Jonny D
I'm trying to use an application on a Macbook Pro with a British keyboard, that has been written with SDL. That laptop has no direct key for the Hash (#) character, and I normally need to press ALT-3 to get that character. But it appears SDL is trapping the ALT key, so preventing me using that character - unless I cut-and-paste it from another Mac application.
Has this been noticed before, and is there a work-around please?
Thank you
_______________________________________________
SDL mailing list
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
Loading...