You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I wrote sample code for a mouse event like this.
require 'dxopal'
include DXOpal
Window.load_resources do
Window.loop do
case
when Input.mouse_release?(M_MBUTTON)
p 'Middle mouse release'
when Input.mouse_down?(M_MBUTTON)
p 'Middle mouse down'
when Input.mouse_release?(M_LBUTTON)
p 'Left mouse release'
when Input.mouse_down?(M_LBUTTON)
p 'Left mouse down'
end
end
end
After that, I checked the operation with a browser.
I clicked the left mouse button.
The following is displayed on the browser console.
Left mouse down
Left mouse release
I clicked the middle mouse button.
Middle mouse down
Middle mouse release
I clicked the left mouse button again.
Left mouse down
Middle mouse release (unexpected result)
The problem seems to be that the return value of ev.buttons (lib/dxopal/input.rb) when mouseup is always 0.
The text was updated successfully, but these errors were encountered:
Hi. I wrote sample code for a mouse event like this.
After that, I checked the operation with a browser.
I clicked the left mouse button.
The following is displayed on the browser console.
I clicked the middle mouse button.
I clicked the left mouse button again.
The problem seems to be that the return value of ev.buttons (lib/dxopal/input.rb) when mouseup is always 0.
The text was updated successfully, but these errors were encountered: