Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4387938

Unable to tell which button is pressed/released on a mouse event

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.1.8, 1.3.0, 1.4.0
    • client-libs
    • beta
    • generic, sparc
    • generic, solaris_7

      The old InputEvent modifiers have same values for keyboard
      and mouse buttons. So in certain situations there is no way
      to distinguish which one is pressed or when more than one is held
      simultanously. These situations would include the cases when more
      than one mouse button is down at the same time, or when a
      modifier key is used to modify a mouse event.



      ingrid.yao@Eng 2001-05-10

      CAP program member complains the new InputEvent modifiers are
      likely to cause many programs to fail since many programmers
      probably do something like:

      [...]
      if (e.getModifiers() == InputEvent.BUTTON1_MASK)
      {
      }
      [...]

            ssisunw Ssi Ssi (Inactive)
            ehawkessunw Eric Hawkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: