OpenRTX/platform/drivers/keyboard/keyboard_linux.c

42 wiersze
1.8 KiB
C
Czysty Zwykły widok Historia

2020-10-30 21:58:15 +00:00
/***************************************************************************
2023-02-08 15:33:02 +00:00
* Copyright (C) 2020 - 2023 by Federico Amedeo Izzo IU2NUO, *
2022-06-02 07:56:05 +00:00
* Niccolò Izzo IU2KIN *
* Frederik Saraci IU2NRO *
* Silvano Seva IU2KWO *
2020-10-30 21:58:15 +00:00
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <stdio.h>
#include <stdint.h>
#include <interfaces/keyboard.h>
#include <emulator/sdl_engine.h>
#include <emulator/emulator.h>
2021-07-04 19:17:25 +00:00
void kbd_init()
{
}
keyboard_t kbd_getKeys()
{
keyboard_t keys = 0;
2021-07-04 19:17:25 +00:00
//this pulls in emulated keypresses from the command shell
keys |= emulator_getKeys();
keys |= sdlEngine_getKeys();
2022-06-02 07:56:05 +00:00
return keys;
2020-10-30 21:58:15 +00:00
}