![]() |
#1 |
Human being with feelings
Join Date: Jan 2014
Location: Ontario, Canada
Posts: 1,638
|
![]()
This fairly straightforward example intends to use a different mouse cursor when the mouse button is pressed than when it isn't, but it doesn't work.
Expected result: clicking and holding the mouse button changes the mouse cursor and moving the mouse while the button is pressed should show the NS/EW cursor, while when the mouse button is released the normal pointer should be shown. Actual result: the cursor doesn't change until the mouse button is released, and then reverts to the pointer when the mouse is subsequently moved. Code:
function update() gfx.update() if gfx.mouse_cap & 0x01 ~= 0 then -- NS/EW move cursor gfx.setcursor(32646) else -- Normal pointer gfx.setcursor(32512) end reaper.defer(update) end gfx.init("Mouse cursor test", 800, 600) update() |
![]() |
![]() |
![]() |
#2 |
Human being with feelings
Join Date: May 2017
Location: Somewhere over the Rainbow
Posts: 6,882
|
![]()
I can confirm it.
In this example, it's not possible to have a i.e. dragging-mouse-cursor while the mouse is clicked, only after mouse-click has been released. So coding of moving objects around with a dragging-mousecursor displayed is not possible to do that way. Windows 7, Reaper 6.23x64
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - ReaGirl - a GuiLib for guis working for blind people |
![]() |
![]() |
![]() |
#3 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,335
|
![]()
Fixing, thanks!
|
![]() |
![]() |
![]() |
#4 |
Human being with feelings
Join Date: May 2017
Location: Somewhere over the Rainbow
Posts: 6,882
|
![]()
Fixed in the latest 6.24-rc3-release.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - ReaGirl - a GuiLib for guis working for blind people |
![]() |
![]() |
![]() |
#5 |
Human being with feelings
Join Date: Jan 2014
Location: Ontario, Canada
Posts: 1,638
|
![]()
Wow, if only all buglets got squashed this crazy-fast!
![]() Thanks very much Justin, and Mespotine for reproducing and following up. |
![]() |
![]() |
![]() |
Thread Tools | |
|
|