Active Threads | Active Posts | Unanswered Today | Since Yesterday | This Week
MAME Jump to new posts
Re: TMS-09xx/1xxx thread (was New Dumps) ssj 01/21/26 08:38 AM
Thats great that you have the overlays. If your case scans aren't good enough for DarthMarino I'll try to source some better ones.
4,253 10,101,161 Read More
MAME Jump to new posts
Re: Current status of the Commodore Amiga driver Lord Nightmare 01/19/26 06:42 AM
do you have a face-on close up of that VFD (which I assume based on its shape was made by noritake)?
51 39,361 Read More
MAME Jump to new posts
Re: AC Multimedia keys work! Golden Child 01/16/26 11:01 PM
I'm learning more about how SDL translates key events in wayland.

Under Ubuntu 24.04.3 with wayland:


$ grep -rni xfree86_scancode_table2 ~/Downloads/libsdl2_2.30.0+dfsg.orig

libsdl2_2.30.0+dfsg.orig/SDL2-2.30.0/src/events/scancodes_xfree86.h:183:static const SDL_Scancode xfree86_scancode_table2[] = {

$ grep -rni SDL_GetScancodeFromTable ~/Downloads/libsdl2_2.30.0+dfsg.orig

libsdl2_2.30.0+dfsg.orig/SDL2-2.30.0/src/events/SDL_keysym_to_scancode.c:435: return SDL_GetScancodeFromTable(SDL_SCANCODE_TABLE_LINUX, linux_keycode);
libsdl2_2.30.0+dfsg.orig/SDL2-2.30.0/src/video/wayland/SDL_waylandevents.c:934: scancode = SDL_GetScancodeFromTable(SDL_SCANCODE_TABLE_XFREE86_2, (key - 8));
libsdl2_2.30.0+dfsg.orig/SDL2-2.30.0/src/video/wayland/SDL_waylandevents.c:1087: scancode = SDL_GetScancodeFromTable(SDL_SCANCODE_TABLE_XFREE86_2, key - 8);


Apparently, the scancode table for wayland is in src/events/scancodes_xfree86.h

According to the file it says it's pretty much the same as the regular linux input event codes.

// This is largely identical to the Linux keycode mapping


I also looked at the SDL scancodes available in

/usr/include/SDL2/SDL_scancode.h


/**
* \name Usage page 0x0C (additional media keys)
*
* These values are mapped from usage page 0x0C (USB consumer page).
*/
/* @{ */

SDL_SCANCODE_AUDIOREWIND = 285,
SDL_SCANCODE_AUDIOFASTFORWARD = 286,


so after adding a line to src/osd/modules/input/input_common.cpp

now I can use the KEY_REWIND with my uinjput key event generator.

[Linked Image from i.imgur.com]
5 1,072 Read More
MAME Jump to new posts
Re: Mameinfo.dat - New homepage MASH 01/15/26 11:27 PM
MAMEinfo 0.285GIT (16th Jan)
Download at: https://mashinfo.github.io/mameinfo/
7 951 Read More
Who's Online Now
2 members (Pernod, Reznor007), 461 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,408
Posts122,983
Members5,094
Most Online3,327
Nov 10th, 2025
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Powered by UBB.threads™ PHP Forum Software 8.0.0