@@ -129,13 +129,14 @@ func (m *Mouse) IsAdaptiveAccelProfileEnabled() bool {
129129 if globalWayland {
130130 return kwayland .CanAdaptiveAccelProfile (fmt .Sprintf ("%s%d" , kwayland .SysNamePrefix , m .Id ))
131131 }
132- adaptive , _ := libinputGetAccelProfile (m .Id )
132+ adaptive , _ , _ := libinputGetAccelProfile (m .Id )
133133 return adaptive
134134}
135135
136136// EnableMiddleButtonEmulation enable mouse middle button emulation
137137// "Evdev Middle Button Emulation"
138- // 1 boolean value (8 bit, 0 or 1).
138+ //
139+ // 1 boolean value (8 bit, 0 or 1).
139140func (m * Mouse ) EnableMiddleButtonEmulation (enabled bool ) error {
140141 if enabled == m .CanMiddleButtonEmulation () {
141142 return nil
@@ -176,7 +177,8 @@ func (m *Mouse) CanMiddleButtonEmulation() bool {
176177
177178// SetMiddleButtonEmulationTimeout set middle button emulation timeout
178179// "Evdev Middle Button Timeout"
179- // 1 16-bit positive value.
180+ //
181+ // 1 16-bit positive value.
180182func (m * Mouse ) SetMiddleButtonEmulationTimeout (timeout int16 ) error {
181183 if m .isLibinputUsed || globalWayland {
182184 return fmt .Errorf ("Libinput unsupport the property" )
@@ -204,7 +206,8 @@ func (m *Mouse) MiddleButtonEmulationTimeout() (int16, error) {
204206
205207// EnableWheelEmulation enable mouse wheel emulation
206208// "Evdev Wheel Emulation"
207- // 1 boolean value (8 bit, 0 or 1).
209+ //
210+ // 1 boolean value (8 bit, 0 or 1).
208211func (m * Mouse ) EnableWheelEmulation (enabled bool ) error {
209212 if enabled == m .CanWheelEmulation () {
210213 return nil
@@ -252,7 +255,8 @@ func (m *Mouse) CanWheelEmulation() bool {
252255
253256// SetWheelEmulationButton set wheel emulation button
254257// "Evdev Wheel Emulation Button"
255- // 1 8-bit value, allowed range 0-32, 0 disables the button.
258+ //
259+ // 1 8-bit value, allowed range 0-32, 0 disables the button.
256260func (m * Mouse ) SetWheelEmulationButton (btnNum int8 ) error {
257261 old , _ := m .WheelEmulationButton ()
258262 if btnNum == old {
@@ -289,7 +293,8 @@ func (m *Mouse) WheelEmulationButton() (int8, error) {
289293
290294// SetWheelEmulationTimeout set wheel emulation timeout
291295// "Evdev Wheel Emulation Timeout"
292- // 1 16-bit positive value.
296+ //
297+ // 1 16-bit positive value.
293298func (m * Mouse ) SetWheelEmulationTimeout (timeout int16 ) error {
294299 if m .isLibinputUsed || globalWayland {
295300 return fmt .Errorf ("Libinput unsupport the property" )
0 commit comments