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 5461

Summary: [patch] Add rewritten WSCONS driver for OpenBSD
Product: SDL Reporter: wahil1976
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: wahil1976
Version: HG 2.1   
Hardware: All   
OS: OpenBSD   
Attachments: Patch file for WSCONS support

Description wahil1976 2021-01-12 17:04:27 UTC
Created attachment 4658 [details]
Patch file for WSCONS support

This patch adds a written-from-scratch WSCONS driver for OpenBSD. It does not have hardcoded keymaps, and it features mouse support when wsmux is available.

For this to work, it needs access to the /dev/wskbd* devices which are not available to non-root users by default. Access to those can be granted by changing /etc/fbtab to give the logging user the ownership of those devices.
Comment 1 Sam Lantinga 2021-01-14 22:32:50 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/239af7576cb3