MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Button

Method Button

events.go:176–190  ·  view source on GitHub ↗
(button sdl.MouseButtonFlags)

Source from the content-addressed store, hash-verified

174}
175
176func (mouse *Mouse) Button(button sdl.MouseButtonFlags) *InputState {
177
178 buttonIndex := uint8(button)
179
180 if mouse.HiddenButtons {
181 return mouse.Dummy.Button(sdl.MouseButtonFlags(buttonIndex))
182 }
183
184 if _, exists := mouse.buttonState[buttonIndex]; !exists {
185 mouse.buttonState[buttonIndex] = &InputState{}
186 }
187
188 return mouse.buttonState[buttonIndex]
189
190}
191
192func (mouse *Mouse) RelativeMovement() Vector {
193 if mouse.HiddenPosition {

Callers 15

UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
UpdateMethod · 0.80
MouseActionsMethod · 0.80
GlobalShortcutsMethod · 0.80
ClickedInRectFunction · 0.80
RawClickedInRectFunction · 0.80
ClickedOutRectFunction · 0.80
UpdateMethod · 0.80
ImmediateIconButtonFunction · 0.80
UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected