From 335d29f2f565f011102ca9618f9baa13b6c9b187 Mon Sep 17 00:00:00 2001 From: Jacek Olszak Date: Sun, 13 Aug 2023 09:38:05 +0200 Subject: [PATCH] [godoc] Update doc for pi.MouseBtnDuration and pi.Controller.BtnDuration Use specific type name, so the user can quickly find out in the docs what are the values of given type. --- controller.go | 2 +- mouse.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controller.go b/controller.go index 8014b27..96b5333 100644 --- a/controller.go +++ b/controller.go @@ -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 } diff --git a/mouse.go b/mouse.go index 1cd8b8f..7958195 100644 --- a/mouse.go +++ b/mouse.go @@ -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.