mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
Make left click animation nicer.
This commit is contained in:
parent
608a6f7a37
commit
a0ac092787
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user