New answers tagged

0

On a thumbstick Y positive 1 means "up": if (GamePad.GetState( PlayerIndex.One ).ThumbSticks.Left.Y == 1.0f) { // Player one has pressed the left thumbstick up. } See Documentation for thumbstick on MSDN (note Monogame is a implementation of XNA): Each of the thumbstick axis members is a signed value describing the position of the thumbstick. A value ...


0

Screen coordinates differ from thumbstick direction and other vector types in that Y increases down. In your case, negating the GamePad Y value makes it match the screen coordinate system. (In a 3D project the projection matrix would fix it.)


0

Perhaps you could change the RasterizerState fill mode. RasterizerState rasterizerState = new RasterizerState(); rasterizerState.FillMode = FillMode.WireFrame; GraphicsDevice.RasterizerState = rasterizerState;



Top 50 recent answers are included