<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1309</bug_id>
          
          <creation_ts>2016-05-22 18:56:35 +0200</creation_ts>
          <short_desc>Mouse buttons not specified in BCM VC IV MouseEvents</short_desc>
          <delta_ts>2019-03-27 03:57:52 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Newt</product>
          <component>embedded</component>
          <version>2.4.0</version>
          <rep_platform>embedded_arm</rep_platform>
          <op_sys>linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Gottfried Haider">gottfried.haider</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gottfried.haider</cc>
    
    <cc>gouessej</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>jogl 60fadc1e723eaae471d68e9b0b939dfe2ba6abfe</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5634</commentid>
    <comment_count>0</comment_count>
    <who name="Gottfried Haider">gottfried.haider</who>
    <bug_when>2016-05-22 18:56:35 +0200</bug_when>
    <thetext>Mouse events received using JOGL and the BCM VC IV (Raspberry Pi) driver don&apos;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&lt;1&gt;[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&apos;s driver? Thanks for looking into this!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6108</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-03-27 03:57:52 +0100</bug_when>
    <thetext>Gottfried, thank you for your patches. 
Very much appreciated.

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

Please reopen this bug if required.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>