KMSDRM/EVDEV: add VT switching support for FreeBSD (#14346)

Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr>
This commit is contained in:
Quentin Thébault
2025-10-29 16:52:32 +00:00
committed by GitHub
parent b3612f6462
commit 3b80fcd1a0
3 changed files with 215 additions and 35 deletions

View File

@@ -329,6 +329,11 @@ void SDL_EVDEV_Poll(void)
for (item = _this->first; item; item = item->next) {
while ((len = read(item->fd, events, sizeof(events))) > 0) {
#ifdef SDL_INPUT_FBSDKBIO
if (SDL_GetAtomicInt(&vt_current) == VT_THEIRS) {
continue;
}
#endif
len /= sizeof(events[0]);
for (i = 0; i < len; ++i) {
struct input_event *event = &events[i];