Example #1
0
 /// <summary>
 /// Update each game loop
 /// </summary>
 internal void Update()
 {
     #if !XBOX
     previousState = currentState;
     currentState = new ScratchyMouseState(Mouse.GetState());
     position = Vector2.Zero; // Clear the cached position
     #endif
 }
Example #2
0
 /// <summary>
 /// Init
 /// </summary>
 internal void Init()
 {
     #if XBOX
     previousState = currentState = new ScratchyMouseState();
     #else
     previousState = currentState = new ScratchyMouseState(Mouse.GetState());
     #endif
 }