OpenBoard-org / OpenBoard

OpenBoard is a cross-platform interactive whiteboard application intended for use in a classroom setting.
https://openboard.ch/
GNU General Public License v3.0
2.33k stars 419 forks source link

Disabling stylus buttons #1031

Open pj-camp opened 2 months ago

pj-camp commented 2 months ago

How do you do it? For me, they are just an annoyance because I keep hitting them by accident. It is extremely annoying to trigger the eraser in the middle of a drawing. Thanks!

MiltonBalaOfficial commented 3 weeks ago

see top left corner!

pj-camp commented 2 weeks ago

That turns the entire stylus off. I just want to disable the buttons. It is probably an OS issue but I thought I'd ask here on the chance that Openboard has a setting to ignore them. Thanks!

On Tue, 20 Aug 2024 at 22:33, MiltonBalaOfficial @.***> wrote:

see top left corner!

— Reply to this email directly, view it on GitHub https://github.com/OpenBoard-org/OpenBoard/issues/1031#issuecomment-2300339453, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANOYDJUAX7RJXGF5VSYNQDDZSP4AHAVCNFSM6AAAAABKV72BOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBQGMZTSNBVGM . You are receiving this because you authored the thread.Message ID: @.***>

-- Dr. Paul J. Camp

"The beauty of the cosmos derives not only from unity in variety but also from variety in unity" -- Umberto Eco The Name of the Rose

Vekhir commented 2 weeks ago

@pj-camp If the buttons are disabled, what's the point of having the stylus toolbar?

pj-camp commented 2 weeks ago

To draw with. The buttons are perfectly positioned for my thumb to bring up the eraser all the time which wrecks what I am drawing. Anything the buttons can do, I can also do using the toolbar at the bottom of the screen. Since I'm using this for group discussions with my students, having the eraser pop uo and destroy part of what I'm trying to show them is super annoying.

On Fri, 30 Aug 2024 at 09:09, Vekhir @.***> wrote:

@pj-camp https://github.com/pj-camp If the buttons are disabled, what's the point of having the stylus?

— Reply to this email directly, view it on GitHub https://github.com/OpenBoard-org/OpenBoard/issues/1031#issuecomment-2321204901, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANOYDJTS4D3SNT3ZFPZWWJTZUBVIDAVCNFSM6AAAAABKV72BOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRRGIYDIOJQGE . You are receiving this because you were mentioned.Message ID: @.***>

-- Dr. Paul J. Camp

"The beauty of the cosmos derives not only from unity in variety but also from variety in unity" -- Umberto Eco The Name of the Rose

Vekhir commented 2 weeks ago

For my understanding, you are talking about the buttons in the top left? They are marked with blue in the image below. So, if I understand you correctly - and please correct me if I don't - you'd like the buttons in the blue rectangle to be disabled while the toolbar at the bottom (in the purple rectangle) is still functional?

And when I said "stylus" above, I meant the toolbar. Although I can still draw when the toolbar is not visible.

openboard

pj-camp commented 2 weeks ago

No. The physical buttons on the actual side of the physical stylus that you hold in your hand.

On Fri, 30 Aug 2024 at 17:58, Vekhir @.***> wrote:

For my understanding, you are talking about the buttons in the top left? They are marked with blue in the image below. So, if I understand you correctly - and please correct me if I don't - you'd like the buttons in the blue rectangle to be disabled while the toolbar at the bottom (in the purple rectangle) is still functional?

And when I said "stylus" above, I meant the toolbar. Although I can still draw when the toolbar is not visible.

openboard.png (view on web) https://github.com/user-attachments/assets/c3d64b26-9da0-40e3-9122-9d3953c35035

— Reply to this email directly, view it on GitHub https://github.com/OpenBoard-org/OpenBoard/issues/1031#issuecomment-2322400005, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANOYDJXZQJPMMN7BISYRVR3ZUDTGZAVCNFSM6AAAAABKV72BOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRSGQYDAMBQGU . You are receiving this because you were mentioned.Message ID: @.***>

-- Dr. Paul J. Camp

"The beauty of the cosmos derives not only from unity in variety but also from variety in unity" -- Umberto Eco The Name of the Rose

Vekhir commented 1 week ago

So you have a physical stylus that you draw with, and one of its buttons triggers the eraser. This button shall be disabled without disabling the stylus altogether (in particular, drawing with it must still be possible).

Normally this needs to be done at the OS level, as the driver is responsible for that. Which OS are you using (Mac, Windows, Linux)? Without committing to anything, Qt might provide the possibility to intercept the eraser event via QPointingDevice. Openboard actually already uses it in src/board/UBBoardView.cpp#L352, though that usage seems limited to MacOS (compare UBBoardView::directTabletEvent and UBMainWindow::event)

pj-camp commented 1 week ago

I figured it was an OS level thing. I am using it on both Windows and Linux. I've tried the general Linux command line method of reprogramming buttons but it didn't seem to do anything. The Windows driver has no such options.

On Sat, 31 Aug 2024 at 09:32, Vekhir @.***> wrote:

So you have a physical stylus that you draw with, and one of its buttons triggers the eraser. This button shall be disabled without disabling the stylus altogether (in particular, drawing with it must still be possible).

Normally this needs to be done at the OS level, as the driver is responsible for that. Which OS are you using (Mac, Windows, Linux)? Without committing to anything, Qt might provide the possibility to intercept the eraser event via QPointingDevice https://doc.qt.io/qt-6/qpointingdevice.html#PointerType-enum. Openboard actually already uses it in src/board/UBBoardView.cpp#L352 https://github.com/OpenBoard-org/OpenBoard/blob/master/src/board/UBBoardView.cpp#L352, though that usage seems limited to MacOS (compare UBBoardView::directTabletEvent https://github.com/OpenBoard-org/OpenBoard/blob/master/src/board/UBBoardView.cpp#L923-L1005 and UBMainWindow::event https://github.com/OpenBoard-org/OpenBoard/blob/master/src/gui/UBMainWindow.cpp#L155-L180 )

— Reply to this email directly, view it on GitHub https://github.com/OpenBoard-org/OpenBoard/issues/1031#issuecomment-2322898498, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANOYDJUCNTRA4GMZTS6NLQTZUHAXTAVCNFSM6AAAAABKV72BOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRSHA4TQNBZHA . You are receiving this because you were mentioned.Message ID: @.***>

-- Dr. Paul J. Camp

"The beauty of the cosmos derives not only from unity in variety but also from variety in unity" -- Umberto Eco The Name of the Rose