Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
SDL specific issues with minimal UI #43533
08/05/08 06:00 PM
08/05/08 06:00 PM
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
etabeta78 Offline OP
Very Senior Member
etabeta78  Offline OP
Very Senior Member
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
hi, I found these small bugs in the way minimal UI works in SDLMAME compared to baseline MAME. In particular, there are 3 issues going on:

Quote:
1. start MAME with no sets. I'm prompted with a ramdom list. If now I press UP or DOWN, the list becomes alphabetically ordered (005, 10yards, etc.).

2. start MAME with no sets and start typing a title, say "ms" (with no quotes). the list appars as follows: 20pacgal, ms4plus, ms5pcb (etc.). If I press DOWN to scroll the list, the list changes to the following: 20pacgal, 800fath, cheekyms (and mslug 4 & 5 are out of the screen). Moreover, if I press any another letter key, after DOWN, the list doesn't change anymore (except if I press ESC, which resets what I typed).

3. start MAME with no sets and start typing whatever you want. Backspace doesn't work anymore and you can only press ESC to clear what you typed.


None of these is really blocking (thanks to awesome possibility to double click on entries to start the game), yet it would be nice to know if any can be fixed smile

Re: SDL specific issues with minimal UI [Re: etabeta78] #43536
08/05/08 06:44 PM
08/05/08 06:44 PM
Joined: Sep 2004
Posts: 385
Issaquah, WA
A
AaronGiles Offline
Senior Member
AaronGiles  Offline
Senior Member
A
Joined: Sep 2004
Posts: 385
Issaquah, WA
The backspace issue is probably SDLMAME-specific (the core expects a BS character [8] to signify backspace).

The other issues can probably be solved by more aggressively filtering the character messages in the core. Right now, the core takes anything; it should probably limit it to standard ASCII. For whatever reason, what Windows sends doesn't cause any issues.

Re: SDL specific issues with minimal UI [Re: AaronGiles] #43537
08/05/08 06:48 PM
08/05/08 06:48 PM
Joined: Mar 2001
Posts: 16,134
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,134
USA
I'm sending it UTF-8, and backspace works for me. Are you on a non-QWERTY keyboard eta?

Re: SDL specific issues with minimal UI [Re: R. Belmont] #43538
08/05/08 06:59 PM
08/05/08 06:59 PM
Joined: Apr 2004
Posts: 1,554
J
judge Offline
Very Senior Member
judge  Offline
Very Senior Member
J
Joined: Apr 2004
Posts: 1,554
Backspace doesn't work for me either. This might be an osx specific issue?

Re: SDL specific issues with minimal UI [Re: R. Belmont] #43539
08/05/08 06:59 PM
08/05/08 06:59 PM
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
etabeta78 Offline OP
Very Senior Member
etabeta78  Offline OP
Very Senior Member
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
us keyboard on my macbook

Re: SDL specific issues with minimal UI [Re: etabeta78] #43541
08/05/08 07:18 PM
08/05/08 07:18 PM
Joined: Mar 2001
Posts: 16,134
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,134
USA
It's entirely possible. Mac keyboard freakouts with SDL aren't exactly unknown.

Re: SDL specific issues with minimal UI [Re: etabeta78] #43549
08/05/08 08:45 PM
08/05/08 08:45 PM
Joined: Feb 2007
Posts: 464
C
couriersud Offline
Senior Member
couriersud  Offline
Senior Member
C
Joined: Feb 2007
Posts: 464
Originally Posted By etabeta78
us keyboard on my macbook

Might make sense to insert a printf("Key send %x\n", event.key.keysym.unicode) around line 1087 (src/osd/sdl/input.c) before the ui_input_push_char_event and report the results back here.

Code:
		case SDL_KEYDOWN:
			devinfo = keyboard_list;
			devinfo->keyboard.state[OSD_SDL_INDEX_KEYSYM(&event.key.keysym)] = 0x80;
#if (!SDL_VERSION_ATLEAST(1,3,0))
			ui_input_push_char_event(machine, sdl_window_list->target, (unicode_char) event.key.keysym.unicode);
#endif


This looks like a SDL issue - as already expressed. The results of the above proposed changes may at least show a suitable workaround

Re: SDL specific issues with minimal UI [Re: couriersud] #43553
08/05/08 09:25 PM
08/05/08 09:25 PM
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
etabeta78 Offline OP
Very Senior Member
etabeta78  Offline OP
Very Senior Member
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
the arrows producing the reordering problem are in the range

f700 -> f703 (up, down, left, right)

the not working backspace is 7f



Re: SDL specific issues with minimal UI [Re: etabeta78] #43554
08/05/08 09:33 PM
08/05/08 09:33 PM
Joined: Mar 2001
Posts: 16,134
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,134
USA
Yeah, this definitely sounds like an SDL problem. I guess we can #ifdef OSX a cheap hack in the meantime though (since this will also affect MESS natural keyboard now).

Re: SDL specific issues with minimal UI [Re: R. Belmont] #43555
08/05/08 09:53 PM
08/05/08 09:53 PM
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
etabeta78 Offline OP
Very Senior Member
etabeta78  Offline OP
Very Senior Member
Joined: Jan 2006
Posts: 3,687
Trondheim, Norway
I can do further specific tests. Simply ask what you want me to try wink

Page 1 of 2 1 2

Moderated by  R. Belmont 

Who's Online Now
1 registered members (shattered), 162 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,633
Posts112,983
Members4,842
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.146s Queries: 15 (0.049s) Memory: 5.7193 MB (Peak: 5.9409 MB) Zlib enabled. Server Time: 2019-03-23 19:15:54 UTC