I am trying to create a Minesweeper game using jQuery, I successfully process left and right clicks with event.which, but is it possible to detect left and right clicks at the same time?
I doubt that you will ever get both at the same time, as soon as you step first, even if after a few ms.
set the flag when one of them is set, and check this flag in the other
Source: https://habr.com/ru/post/1779746/More articles:View ACCDB with Access 2010 runtime when installing Access 2007 - ms-accessTypedef redefinition (C2371) for uint32 in two third-party libraries - c ++C # facebook graph / How to upload image to Facebook album? - c #SWT: how to create a regular button from an action - javaGeneric reflective helper method for equals and hashCode - javaКакой ISO используется для определения countryId в локали? - javaBest way for unique random string for MySQL Long table - databaseA model linking two or more collections - asp.net-mvcHow to handle ASP.NET MVC global string constants - .netYoda Equivalent to Date data structure - javaAll Articles