Skip to content

Commit

Permalink
Mouse delta zero check should be checked against truncated value
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersMalmgren committed Jul 15, 2013
1 parent 5024009 commit f93489b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FreePIE.Core.Plugins/MousePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static private MouseKeyIO.MOUSEINPUT MouseInput(int x, int y, uint data, uint t,
public override void DoBeforeNextExecute()
{
// If a mouse command was given in the script, issue it all at once right here
if ((deltaXOut != 0) || (deltaYOut != 0))
if ((int)deltaXOut != 0 || (int)deltaYOut != 0)
{

var input = new MouseKeyIO.INPUT[1];
Expand Down

0 comments on commit f93489b

Please sign in to comment.