Bug 1309

Summary: Mouse buttons not specified in BCM VC IV MouseEvents
Product: [JogAmp] Newt Reporter: Gottfried Haider <gottfried.haider>
Component: embeddedAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: normal CC: gottfried.haider, gouessej
Priority: P4    
Version: 2.4.0   
Hardware: embedded_arm   
OS: linux   
Type: DEFECT SCM Refs:
jogl 60fadc1e723eaae471d68e9b0b939dfe2ba6abfe
Workaround: ---

Description Gottfried Haider 2016-05-22 18:56:35 CEST
Mouse events received using JOGL and the BCM VC IV (Raspberry Pi) driver don't specify the mouse button that was pressed or released. See e.g.:

MouseEvent[EVENT_MOUSE_CLICKED, [117]/[64], button 0, count 1, rotation [0.0, 0.0, 0.0] * 1.0, pointer<1>[0/Mouse: 117/64, p[0.0/1.0=0.0]], InputEvent[modifiers: [], NEWTEvent[source:jogamp.newt.driver.bcm.vc.iv.WindowDriver, consumed false, when:1463935695926 d 1ms]]]

Processing is looking at nativeEvent.getModifiers() to have the bits for BUTTON1_MASK, BUTTON2_MASK, or BUTTON3_MASK set.

Is this information somehow retrievable from Broadcom's driver? Thanks for looking into this!
Comment 1 Sven Gothel 2019-03-27 03:57:52 CET
Gottfried, thank you for your patches. 
Very much appreciated.

I have merged your patch.
Since I don't test this platform - I trust you here.

Please reopen this bug if required.