Start a bit of work on input threads
This commit is contained in:
parent
905ebe528a
commit
bcb247dc14
3 changed files with 37 additions and 2 deletions
|
|
@ -137,7 +137,8 @@ static void led_off_handle4(void)
|
|||
|
||||
// current state of the keys
|
||||
// JOYAXISRANGE for fully pressed, 0 for not pressed
|
||||
INT32 gamekeydown[MAXDEVICES][NUMINPUTS] = {};
|
||||
inputpoll_t gamekeydown = {};
|
||||
inputpoll_t gamekeydown_msec = {};
|
||||
boolean deviceResponding[MAXDEVICES] = {false};
|
||||
|
||||
// several key codes (or virtual key) per game control
|
||||
|
|
|
|||
|
|
@ -104,7 +104,10 @@ extern consvar_t cv_gamepadled[MAXSPLITSCREENPLAYERS];
|
|||
// current state of the keys: JOYAXISRANGE or 0 when boolean.
|
||||
// Or anything inbetween for analog values
|
||||
#define MAXDEVICES (MAXGAMEPADS + 1) // Gamepads + keyboard & mouse
|
||||
extern INT32 gamekeydown[MAXDEVICES][NUMINPUTS];
|
||||
|
||||
typedef INT32 inputpoll_t[MAXDEVICES][NUMINPUTS];
|
||||
extern inputpoll_t gamekeydown, gamekeydown_msec;
|
||||
|
||||
extern boolean deviceResponding[MAXDEVICES];
|
||||
|
||||
// several key codes (or virtual key) per game control
|
||||
|
|
|
|||
31
src/k_runahead.hpp
Normal file
31
src/k_runahead.hpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// BLANKART
|
||||
//-----------------------------------------------------------------------------
|
||||
// Copyright (C) 2018-2025 by Kart Krew.
|
||||
// Copyright (C) 2026 by "yama".
|
||||
// Copyright (C) 2026 Blankart Team.
|
||||
//
|
||||
// This program is free software distributed under the
|
||||
// terms of the GNU General Public License, version 2.
|
||||
// See the 'LICENSE' file for more details.
|
||||
//-----------------------------------------------------------------------------
|
||||
/// \file k_runahead.hpp
|
||||
/// \brief Millisecond-level input polling
|
||||
|
||||
|
||||
|
||||
#ifndef __K_RUNAHEAD__
|
||||
#define __K_RUNAHEAD__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct inputpoll_t
|
||||
{
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue