Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Dahlmanns committed Jun 4, 2017
1 parent 3d90ad4 commit a8064e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion uinput.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ type vMouse struct {
deviceFile *os.File
}

// A TouchPad is an input device that uses absolute axis events, meaning that you can specifiy
// A TouchPad is an input device that uses absolute axis events, meaning that you can specify
// the exact position the cursor should move to. Therefore, it is necessary to define the size
// of the rectangle in which the cursor may move upon creation of the device.
type TouchPad interface {
Expand Down
4 changes: 2 additions & 2 deletions uinput_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ func TestBasicTouchPadMoves(t *testing.T) {
t.Fatalf("Failed to create the virtual touch pad. Last error was: %s\n", err)
}

err = absDev.MoveTo(0,0)
err = absDev.MoveTo(0, 0)
if err != nil {
t.Fatalf("Failed to move cursor to initial position. Last error was: %s\n", err)
}

err = absDev.MoveTo(100, 200)
if (err != nil) {
if err != nil {
t.Fatalf("Failed to move cursor to position x:100, y:200. Last error was: %s\n", err)
}
err = absDev.RightClick()
Expand Down

0 comments on commit a8064e7

Please sign in to comment.