Bug 1309 - Mouse buttons not specified in BCM VC IV MouseEvents
Summary: Mouse buttons not specified in BCM VC IV MouseEvents
Status: UNCONFIRMED
Alias: None
Product: Newt
Classification: JogAmp
Component: embedded (show other bugs)
Version: 2.4.0
Hardware: embedded_arm linux
: P4 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2016-05-22 18:56 CEST by Gottfried Haider
Modified: 2016-07-06 09:12 CEST (History)
2 users (show)

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!