Make left click animation nicer.

This commit is contained in:
UnknownShadow200 2015-11-16 13:21:36 +11:00
parent 608a6f7a37
commit a0ac092787
2 changed files with 4 additions and 3 deletions

View File

@ -54,9 +54,9 @@ namespace ClassicalSharp.Renderers {
if( !leftAnimation ) { if( !leftAnimation ) {
fakePlayer.Position.Y = -(float)Math.Sin( animTime * animSpeed ); fakePlayer.Position.Y = -(float)Math.Sin( animTime * animSpeed );
} else { } else {
fakePlayer.Position.X = 0.2f * (float)Math.Sin( animTime * animSpeed ); //fakePlayer.Position.X = 0.2f * (float)Math.Sin( animTime * animSpeed );
fakePlayer.Position.Y = 0.5f * (float)Math.Sin( animTime * animSpeed * 2 ); fakePlayer.Position.Y = 0.3f * (float)Math.Sin( animTime * animSpeed * 2 );
fakePlayer.Position.Z = -0.9f * (float)Math.Sin( animTime * animSpeed ); fakePlayer.Position.Z = -0.7f * (float)Math.Sin( animTime * animSpeed );
angleX = 20 * (float)Math.Sin( animTime * animSpeed * 2 ); angleX = 20 * (float)Math.Sin( animTime * animSpeed * 2 );
SetupMatrices(); SetupMatrices();
} }

View File

@ -373,6 +373,7 @@ namespace OpenTK.Platform.MacOS
IntPtr thisEventWindow; IntPtr thisEventWindow;
API.GetEventWindowRef(inEvent, out thisEventWindow); API.GetEventWindowRef(inEvent, out thisEventWindow);
CheckEnterLeaveEvents(thisEventWindow, mousePosInClient); CheckEnterLeaveEvents(thisEventWindow, mousePosInClient);
Console.WriteLine("EVENT: " + (MouseEventKind)evt.EventKind);
switch ((MouseEventKind)evt.EventKind) switch ((MouseEventKind)evt.EventKind)
{ {