2010-09-02发表2024-06-13更新program几秒读完 (大约83个字)0次访问C#实现扫雷游戏中左右键同时点击123456789101112131415161718192021222324252627282930313233343536private MouseButtons Button;private long Ticks;private long TicksDelay = 100000L;private void btn_Click(object sender, MouseEventArgs e){ if (e.Button == MouseButtons.Left) { if (DateTime.Now.Ticks - Ticks < TicksDelay && Button == MouseButtons.Right) { //左右键"同时"(先左后右) } else { //左键 } } else if (e.Button == MouseButtons.Right) { if (DateTime.Now.Ticks - Ticks < TicksDelay && Button == MouseButtons.Left) { //左右键"同时"(先右后左) } else { //右键 } } Button = e.Button; Ticks = DateTime.Now.Ticks;} C#实现扫雷游戏中左右键同时点击https://wurang.net/csharp_minesweeper_game/作者Wu Rang发布于2010-09-02更新于2024-06-13许可协议#csharp