- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
是否有一种简单的方法可以确定多按钮鼠标(具有三个以上按钮)上的按钮是否被单击?
例如五键鼠标上的第五个按钮。
我知道这是可能的,因为 USB Overdrive 和 Smart Scroll 等应用程序可以做到这一点...
最佳答案
是的,只需询问事件的buttonNumber
:
- (void)mouseDown:(NSEvent *)theEvent
{
if(theEvent.type == NSOtherMouseDown)
{
NSLog(@"Button number %ld was pressed.", theEvent.buttonNumber);
}
}
关于objective-c - 操作系统 X : Get mouse button position of button greater then the three standard buttons,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12966941/
我遇到过这个 html: 上面的html和这个有什么区别: 最佳答案 来自MDN page on the tag : 对于 type 的属性标签,可能的值是: 提交:按钮将表单数据提交给服务器
Button button= (Button) findViewbyID(R.id.button); 和 Button button = new Button(this); 有什么区别? 最佳答案 有
我是一名优秀的程序员,十分优秀!