- Fixed bug in builder when no content files exist
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user