Skip to content

Commit

Permalink
[godoc] Update doc for pi.MouseBtnDuration and pi.Controller.BtnDuration
Browse files Browse the repository at this point in the history
Use specific type name, so the user can quickly find out in the docs what are the values of given type.
  • Loading branch information
elgopher committed Aug 13, 2023
1 parent aa68d8e commit 335d29f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var Controllers [8]Controller // 0th element is for Player 0, 1st for Player 1 e

type Controller struct {
// BtnDuration is how many frames button was pressed:
// Index of array is equal to controller button constant.
// Index of array is equal to Button constant
BtnDuration [6]uint
}

Expand Down
2 changes: 1 addition & 1 deletion mouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (

var (
// MouseBtnDuration has how many frames in a row a mouse button was pressed:
// Index of array is equal to mouse button constant.
// Index of array is equal to MouseButton constant.
MouseBtnDuration [3]uint

// MousePos is the position of mouse in screen coordinates.
Expand Down

0 comments on commit 335d29f

Please sign in to comment.