We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5027

Summary: Support for KaiOS LSK and RSK keys
Product: SDL Reporter: pelya <x.pelya.x>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: HG 2.0Keywords: target-2.0.14
Hardware: ARM   
OS: Other   
Attachments: Patch to support LSK and RSK keys

Description pelya 2020-03-12 21:17:24 UTC
Created attachment 4253 [details]
Patch to support LSK and RSK keys

Left Soft Key and Right Soft Key on KaiOS are context keys, that act as OK/Next/Menu and Cancel/Back/Clear depending on current dialog.

I did not find any adequate scancode for these actions, so they will generate 'browser forward' and 'browser back' scancodes.

They return scancode 0, so I have to perform strcmp() on key name in the code.

https://developer.kaiostech.com/design-guide/key
Comment 1 Ryan C. Gordon 2020-04-07 18:30:00 UTC
This patch is now https://hg.libsdl.org/SDL/rev/25edf3df6e51, thanks!

--ryan.