Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
Added mouse event handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
craftersmine committed Mar 2, 2019
1 parent 25b7617 commit e03ad88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions craftersmine.EtherEngine.Rendering.Tester/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ private static void GameWindow_Render(object sender, RenderEventArgs e)

public sealed class BaseScene : Scene
{
int coordCount = 0;

List<GameObject> myObjs = new List<GameObject>();
Movable movable = new Movable();
ParticleSystem particleSystem;
Expand Down
4 changes: 4 additions & 0 deletions craftersmine.EtherEngine.Rendering/Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ public Window(string title, WindowSize windowSize, bool isFullscreen)
_gameWnd.Load += _gameWnd_Load;
Keyboard.KeyboardDevice = _gameWnd.Keyboard;
Mouse.MouseDevice = _gameWnd.Mouse;
Mouse.MouseDevice.ButtonDown += Mouse.MouseDeviceButtonDownEvent;
Mouse.MouseDevice.ButtonUp += Mouse.MouseDeviceButtonUpEvent;
Mouse.MouseDevice.Move += Mouse.MouseDeviceMoveEvent;
Mouse.MouseDevice.WheelChanged += Mouse.MouseDeviceWheelChangedEvent;
}

private void _gameWnd_Load(object sender, EventArgs e)
Expand Down

0 comments on commit e03ad88

Please sign in to comment.