Scrolling of mouse wheel should be swallowed by the pause and other menu screens. (Thanks Jjp137)

This commit is contained in:
UnknownShadow200 2016-03-23 17:29:43 +11:00
parent 1bf578664d
commit a4e66f7145
2 changed files with 3 additions and 1 deletions

View File

@ -54,6 +54,8 @@ namespace ClassicalSharp {
return HandleMouseMove( widgets, mouseX, mouseY );
}
public override bool HandlesMouseScroll( int delta ) { return true; }
public override bool HandlesKeyPress( char key ) { return true; }
public override bool HandlesKeyDown( Key key ) { return true; }

View File

@ -70,7 +70,7 @@ namespace ClassicalSharp.Model {
graphics.AlphaTest = true;
index = 0;
DrawHeadRotate( p.PitchRadians, 0, 0, Hat );
DrawHeadRotate( -p.PitchRadians, 0, 0, Hat );
graphics.UpdateDynamicIndexedVb( DrawMode.Triangles, cache.vb, cache.vertices, index, index * 6 / 4 );
}