简体   繁体   English

检测OS X水平滚动和Java缩放

[英]Detect OS X Horizontal Scrolling and Zoom in Java

I'm using a JFrame in Java, and was wondering if it was possible to detect when a user in OS X used the trackpad in a horizontal scrolling or zoom gesture. 我正在Java中使用JFrame,想知道是否可以检测OS X中的用户何时以水平滚动或缩放手势使用触控板。 I'm making something that looks similar to Audacity, and navigation could be much more fluid if the user could use those trackpad features rather than the arrow keys! 我正在制作类似于Audacity的内容,如果用户可以使用这些触控板功能而不是箭头键,导航可能会更加流畅!

您很可能将无法直接访问普通的旧Java中与硬件/平台相关的内容...看一下Java触控板2指滚动侦听器上的两个答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM