- backend update from GZDoom.

* cleanup on the sound init code.
* added #pragma once in several headers.
* macOS version detection overhaul.
This commit is contained in:
Christoph Oelckers 2023-07-22 09:54:00 +02:00
parent 706c784965
commit 6aa61e72b5
32 changed files with 135 additions and 91 deletions

View file

@ -324,8 +324,10 @@ void I_GetJoysticks(TArray<IJoystickConfig *> &sticks)
void I_GetAxes(float axes[NUM_JOYAXIS])
{
memset(axes, 0, sizeof(float) * NUM_JOYAXIS);
for (int i = 0; i < NUM_JOYAXIS; ++i)
{
axes[i] = 0;
}
if (use_joystick && JoystickManager)
{
JoystickManager->AddAxes(axes);