While working on the next version of MTG Forge, which will be called “AI Mage”, I encountered a little snafu. The graphic library (PyGame) which also handles all events doesn’t seem to have a “double click” event. While double-clicking is common when using Windows, I guess it is rare when it comes to videogames. So I was left with a problem, how could I simulate double-clicking? I couldn’t just use single-clicking since I allow the user to rearrange the cards. So what was I going to do?
I don’t know if this solution is optimal or not, but I substituted right-clicking instead. So you use the left mouse button to move a card and the right button to play the card. Hopefully this will eliminate the nuisance of accidentally playing a card, which is very common with Magic Online.
I could have tried to devise a way to measure the time between clicks, so that I could turn a single click into a double click but I wanted a simple solution. On a side note, I was hoping that AI Mage could run on a Macintosh, but I don’t know if they use a two button mouse. I know the old Macs used only a one button mouse.
The joys of programming, oh how I love (and sometimes hate) thee. If my brain can concentrate well enough, I actually spend my time programming instead of playing videogames.