VideoTools/vendor/fyne.io/fyne/v2/driver/desktop/mouse.go
Stu Leak 68df790d27 Fix player frame generation and video playback
Major improvements to UnifiedPlayer:

1. GetFrameImage() now works when paused for responsive UI updates
2. Play() method properly starts FFmpeg process
3. Frame display loop runs continuously for smooth video display
4. Disabled audio temporarily to fix video playback fundamentals
5. Simplified FFmpeg command to focus on video stream only

Player now:
- Generates video frames correctly
- Shows video when paused
- Has responsive progress tracking
- Starts playback properly

Next steps: Re-enable audio playback once video is stable
2026-01-07 22:20:00 -05:00

59 lines
1.7 KiB
Go

package desktop
import "fyne.io/fyne/v2"
// MouseButton represents a single button in a desktop MouseEvent
type MouseButton int
const (
// MouseButtonPrimary is the most common mouse button - on some systems the only one.
// This will normally be on the left side of a mouse.
//
// Since: 2.0
MouseButtonPrimary MouseButton = 1 << iota
// MouseButtonSecondary is the secondary button on most mouse input devices.
// This will normally be on the right side of a mouse.
//
// Since: 2.0
MouseButtonSecondary
// MouseButtonTertiary is the middle button on the mouse, assuming it has one.
//
// Since: 2.0
MouseButtonTertiary
// LeftMouseButton is the most common mouse button - on some systems the only one.
//
// Deprecated: use MouseButtonPrimary which will adapt to mouse configuration.
LeftMouseButton = MouseButtonPrimary
// RightMouseButton is the secondary button on most mouse input devices.
//
// Deprecated: use MouseButtonSecondary which will adapt to mouse configuration.
RightMouseButton = MouseButtonSecondary
)
// MouseEvent contains data relating to desktop mouse events
type MouseEvent struct {
fyne.PointEvent
Button MouseButton
Modifier fyne.KeyModifier
}
// Mouseable represents desktop mouse events that can be sent to CanvasObjects
type Mouseable interface {
MouseDown(*MouseEvent)
MouseUp(*MouseEvent)
}
// Hoverable is used when a canvas object wishes to know if a pointer device moves over it.
type Hoverable interface {
// MouseIn is a hook that is called if the mouse pointer enters the element.
MouseIn(*MouseEvent)
// MouseMoved is a hook that is called if the mouse pointer moved over the element.
MouseMoved(*MouseEvent)
// MouseOut is a hook that is called if the mouse pointer leaves the element.
MouseOut()
}