Skip to content

Commit b9e6cef

Browse files
Merge branch 'New-Editor' of https://github.com/ProwlEngine/Prowl into New-Editor
2 parents 15af7b6 + ed5dc36 commit b9e6cef

3 files changed

Lines changed: 1 addition & 7 deletions

File tree

Prowl.Runtime/InputManagement/DefaultInputHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private void UpdateKeyStates()
224224

225225
public bool GetMouseButtonUp(int button) => !isMousePressed[(MouseButton)button] && wasMousePressed[(MouseButton)button];
226226

227-
public void SetCursorVisible(bool visible, int miceIndex = 0) => Mice[miceIndex].Cursor.CursorMode = visible ? CursorMode.Normal : CursorMode.Hidden;
227+
public void SetCursorVisible(bool visible, int miceIndex = 0) => Mice[miceIndex].Cursor.CursorMode = visible ? CursorMode.Normal : CursorMode.Disabled;
228228

229229
// Gamepad methods implementation
230230
public int GetGamepadCount() => Context.Gamepads.Count;

Prowl.Runtime/Prowl.Runtime.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
<PackageReference Include="Prowl.Echo" Version="2.1.2" />
3333
<PackageReference Include="Prowl.Paper" Version="1.8.5" />
3434
<PackageReference Include="Silk.NET" Version="2.23.0" />
35-
<PackageReference Include="Silk.NET.Input.Sdl" Version="2.23.0" />
3635
<PackageReference Include="Silk.NET.OpenAL.Soft.Native" Version="1.23.1" />
37-
<PackageReference Include="Silk.NET.Windowing.Sdl" Version="2.23.0" />
3836
<!-- <PackageReference Include="Silk.NET.OpenAL.Soft.Native" Version="1.23.1" /> -->
3937
</ItemGroup>
4038

Prowl.Runtime/Window.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
using Silk.NET.Input;
88
using Silk.NET.Maths;
99
using Silk.NET.Windowing;
10-
using Silk.NET.Windowing.Sdl;
1110

1211
namespace Prowl.Runtime;
1312

@@ -155,10 +154,7 @@ public static bool IsFocused
155154

156155
public static void InitWindow(string title, int width, int height, WindowState startState = WindowState.Normal, bool VSync = true)
157156
{
158-
SdlWindowing.Use();
159-
160157
WindowOptions options = WindowOptions.Default;
161-
162158
options.Title = title;
163159
options.Size = new Vector2D<int>(width, height);
164160
options.WindowState = startState;

0 commit comments

Comments
 (0)