Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from wanjohiryan/patch-1
Browse files Browse the repository at this point in the history
Fix multiple typos in gamepad_test.go
  • Loading branch information
bendahl authored Mar 14, 2023
2 parents 3f487eb + f68160c commit 69b70e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Uinput [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](ht
====

This package provides pure go wrapper functions for the LINUX uinput device, which allows to create virtual input devices
in userspace. At the moment this package offers a virtual keyboard implementation as well as a virtual mouse device,
in userspace. At the moment this package offers a virtual keyboard implementation as well as a virtual mouse device,gamepad,
a touch pad device & a dial device.

The keyboard can be used to either send single key presses or hold down a specified key and release it later
Expand Down
8 changes: 4 additions & 4 deletions gamepad_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,31 +104,31 @@ func TestHatMovement(t *testing.T) {

err = vg.HatPress(HatUp)
if err != nil {
t.Fatalf("Falied to move hat up")
t.Fatalf("Failed to move hat up")
}
err = vg.HatRelease(HatUp)
if err != nil {
t.Fatalf("Failed to release hat")
}
err = vg.HatPress(HatRight)
if err != nil {
t.Fatalf("Falied to move hat right")
t.Fatalf("Failed to move hat right")
}
err = vg.HatRelease(HatRight)
if err != nil {
t.Fatalf("Failed to release hat")
}
err = vg.HatPress(HatDown)
if err != nil {
t.Fatalf("Falied to move hat down")
t.Fatalf("Failed to move hat down")
}
err = vg.HatRelease(HatDown)
if err != nil {
t.Fatalf("Failed to release hat")
}
err = vg.HatPress(HatLeft)
if err != nil {
t.Fatalf("Falied to move hat left")
t.Fatalf("Failed to move hat left")
}
err = vg.HatRelease(HatLeft)
if err != nil {
Expand Down

0 comments on commit 69b70e5

Please sign in to comment.