Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,36 @@ 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.5.0] - 2026-01-31

### Added

- **W3C Pointer Events Level 3** for unified pointer input
- `PointerEvent` — unified mouse, touch, pen input with full W3C compliance
- `PointerEventType` — Down, Up, Move, Enter, Leave, Cancel
- `PointerType` — Mouse, Touch, Pen
- `Button` — Left, Middle, Right, X1, X2, Eraser
- `Buttons` — bitmask for tracking multiple pressed buttons
- `PointerEventSource` — interface for registering pointer callbacks
- `NullPointerEventSource` — no-op implementation

- **Scroll Events** for mouse wheel and trackpad
- `ScrollEvent` — horizontal/vertical scroll with delta modes
- `ScrollDeltaMode` — Pixel, Line, Page modes
- `ScrollEventSource` — interface for registering scroll callbacks
- `NullScrollEventSource` — no-op implementation

- **CI/CD Infrastructure**
- GitHub Actions workflow (build, test, lint on Linux/macOS/Windows)
- golangci-lint v2 configuration

### Changed

- **TouchCancelled → TouchCanceled** — US English spelling (misspell linter)
- Removed unused `DeviceHandle` alias

[0.5.0]: https://github.com/gogpu/gpucontext/releases/tag/v0.5.0

## [0.4.0] - 2026-01-30

### Added
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ go get github.com/gogpu/gpucontext

- **DeviceProvider** — Interface for injecting GPU device and queue
- **EventSource** — Interface for input events (keyboard, mouse, window, IME)
- **PointerEventSource** — W3C Pointer Events Level 3 (unified mouse/touch/pen)
- **ScrollEventSource** — Scroll/wheel events with pixel/line/page modes
- **TouchEventSource** — Interface for multi-touch input (mobile, tablets, touchscreens)
- **Texture** — Minimal interface for GPU textures with TextureDrawer/TextureCreator
- **IME Support** — Input Method Editor for CJK languages (Chinese, Japanese, Korean)
Expand Down Expand Up @@ -166,7 +168,7 @@ const (
TouchBegan // First contact
TouchMoved // Touch moved
TouchEnded // Touch lifted
TouchCancelled // System interrupted
TouchCanceled // System interrupted
)

// TouchPoint represents a single touch contact
Expand Down Expand Up @@ -206,7 +208,7 @@ func (app *App) AttachTouchEvents(source gpucontext.EventSource) {
// Pan gesture
app.handlePan(ev.All[0])
}
case gpucontext.TouchEnded, gpucontext.TouchCancelled:
case gpucontext.TouchEnded, gpucontext.TouchCanceled:
app.endGesture()
}
})
Expand Down
Loading