0

I am developing an application which requires user input. So far, I have the keyboard controls set up, but I need mouse click events. My UI class implements MouseInputListener. My question: if the trackpad button is clicked/moved rather than on a mouse, will the mouse events still be triggered? If not, how would I include the trackpad's input?

4

1 回答 1

0

它会。对于 JVM,触控板和鼠标基本上是一回事。

但是,有一些意想不到的行为。例如,滚动有时被解释为单击。

于 2015-01-13T01:28:46.333 回答