Topic: 怎样判断两个按钮同时按下?

  Print this page

1.怎样判断两个按钮同时按下? Copy to clipboard
Posted by: myohmy
Posted on: 2006-06-27 14:09

如题

2.Re:怎样判断两个按钮同时按下? [Re: myohmy] Copy to clipboard
Posted by: jerryikitty
Posted on: 2006-06-27 17:39

可以设2个状态变量啊比如aClicked,bClicked 当buttonClickListener检测到A按钮被按下德时候,aClicked = ture then 检测 bClicked是不是true如果是TRUE则促发事件,如果bClicked不是true则等待bClicked。

3.Re:怎样判断两个按钮同时按下? [Re: myohmy] Copy to clipboard
Posted by: wsfree
Posted on: 2006-06-27 21:29

MouseEvent中的getClickCount()=2为双击


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923