java - How are multi-button presses handled in swing? -
I am facing some strange behavior while using the stylus with swing.
I am interpreting pressing the stylus (right) button and pressing down the stylus (LEFT) as the "hold" event, but sometimes (more than 0 times more), Events are still being skipped.
MouseAvent is very clear for Java docs how to execute at a time how multibutton presses are controlled (bottom, right top, top left), but together The button does not say anything about the press.
I'm left to wonder, will they be emitted as two mouse-pressed incidents, or with a button mask set for both buttons, Or something else From the living?
Thank you. / P>
I explain the API doctor because pressing the button together is not possible:
when multiple icons Buttons are pressed, each press, release, and click on the results in a different event
Therefore there should be different events there should be different events that you see Your code may be due to errors, stylus drivers, hardware, or swings (this is possible Interpretation of decreasing the order was like I saw :)
I'd be signing events at various levels have been trying to fix, if possible problem.
Comments
Post a Comment