- Fixed bug in builder when no content files exist

This commit is contained in:
2024-07-12 23:10:44 +02:00
parent d45f7c3b8c
commit 1096597161
23 changed files with 1096 additions and 32 deletions

View File

@ -1,5 +1,5 @@
using System.Numerics;
using SDL2;
using SDL2;
using System.Numerics;
namespace Nerfed.Runtime;
@ -65,6 +65,8 @@ internal static class Mouse
internal static void Update()
{
wheelX = 0;
wheelY = 0;
Array.Copy(buttonStates, lastButtonStates, buttonStates.Length);
}
@ -105,8 +107,8 @@ internal static class Mouse
private static void ProcessWheelEvent(ref SDL.SDL_MouseWheelEvent ev)
{
wheelX += ev.x;
wheelY += ev.y;
wheelX = ev.x;
wheelY = ev.y;
}
private static void ProcessMotionEvent(ref SDL.SDL_MouseMotionEvent ev)