From 3dc52728ef09c832b634f0d41d1556a86187faf5 Mon Sep 17 00:00:00 2001 From: Andrey Kolkov Date: Thu, 13 Aug 2026 08:39:17 +0300 Subject: [PATCH] =?UTF-8?q?release:=20v0.28.0=20=E2=80=94=20MouseButton=20?= =?UTF-8?q?and=20Modifiers=20stringers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 12 ++++++++++++ go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47ffe17..9ec5b1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.28.0] - 2026-08-13 + +### Added + +- **`MouseButton.String()`** — returns button name (Left, Right, Middle, X1, X2) for debugging and logging. Names match pointer `Button.String()`. +- **`Modifiers.String()`** — returns deterministic modifier string (Ctrl+Alt+Shift+Super+CapsLock+NumLock). Order matches `gogpu/ui` event convention. Unknown bits are silently ignored. + +### Changed + +- **deps:** gputypes v0.5.1 → v0.5.2 +- Shared string constants (`stringLeft`, `stringRight`, `stringMiddle`) between `Key.String()`, `Button.String()`, and `MouseButton.String()` — eliminates duplication. + ## [0.27.0] - 2026-08-10 ### Added diff --git a/go.mod b/go.mod index bdf5eaa..275cc20 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/gogpu/gpucontext go 1.25 -require github.com/gogpu/gputypes v0.5.1 +require github.com/gogpu/gputypes v0.5.2 diff --git a/go.sum b/go.sum index eab2fdd..762a744 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/gogpu/gputypes v0.5.1 h1:X38OPcP6umQqqubzzJYL6Nm1tXHSNQj6TRSAoxdAJmg= -github.com/gogpu/gputypes v0.5.1/go.mod h1:cnXrDMwTpWTvJLW1Vreop3PcT6a2YP/i3s91rPaOavw= +github.com/gogpu/gputypes v0.5.2 h1:3sbKI0+XW36Ekd3d4QhkbpdY7gbgMVgp8Q4+ZNdGhtE= +github.com/gogpu/gputypes v0.5.2/go.mod h1:cnXrDMwTpWTvJLW1Vreop3PcT6a2YP/i3s91rPaOavw=