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 ) {
fakePlayer.Position.Y = -(float)Math.Sin( animTime * animSpeed );
} else {
fakePlayer.Position.X = 0.2f * (float)Math.Sin( animTime * animSpeed );
fakePlayer.Position.Y = 0.5f * (float)Math.Sin( animTime * animSpeed * 2 );
fakePlayer.Position.Z = -0.9f * (float)Math.Sin( animTime * animSpeed );
//fakePlayer.Position.X = 0.2f * (float)Math.Sin( animTime * animSpeed );
fakePlayer.Position.Y = 0.3f * (float)Math.Sin( animTime * animSpeed * 2 );
fakePlayer.Position.Z = -0.7f * (float)Math.Sin( animTime * animSpeed );
angleX = 20 * (float)Math.Sin( animTime * animSpeed * 2 );
SetupMatrices();
}

View File

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