any key doesn't recognize mouse click

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
Willy Elektrix
Liquid Metal Slime
Posts: 910
Joined: Sun Aug 15, 2010 11:30 pm

any key doesn't recognize mouse click

Post by Willy Elektrix »

I have several scripts with "wait for key" in them. They work fine with the keyboard or gamepad, but they don't seem to respond to mouse clicks. I have all the mouse control bitsets turned on. What am I missing?
Last edited by Willy Elektrix on Sun Jun 14, 2020 6:52 pm, edited 1 time in total.
User avatar
kylekrack
Liquid Metal Slime
Posts: 1169
Joined: Mon Jun 16, 2014 8:58 am
Location: USA
Contact:

Post by kylekrack »

According to the dictionary:

any key
# Any keyboard key or joystick button (including joystick left/right/up/down),
# and also any mouse button if "'any key', etc, include mouse clicks" is turned on in
# the Mouse Controls menu.

You're sure that specific bitset is turned on?
My pronouns are they/them
Ps. I love my wife
TMC
Metal King Slime
Posts: 4090
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

That bit (in the Mouse Controls menu) is new in Gorgonzola, BTW. It's off by default in existing games.
Last edited by TMC on Sun Jun 14, 2020 11:05 pm, edited 1 time in total.
User avatar
Willy Elektrix
Liquid Metal Slime
Posts: 910
Joined: Sun Aug 15, 2010 11:30 pm

Post by Willy Elektrix »

I'm still on farfluns. I'm updating to gorgonzola now.
Attachments
xenonew0000.png
xenonew0000.png (3.77 KiB) Viewed 594 times
Last edited by Willy Elektrix on Wed Jun 17, 2020 4:08 pm, edited 1 time in total.
TMC
Metal King Slime
Posts: 4090
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Well nice to see it get used; so often when I add a feature someone needed they already found a workaround anyway.
TMC
Metal King Slime
Posts: 4090
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Prifurin suggested that that bit should be on by default (in new games), after wasting time wondering why "wait for key(any key)" didn't work, due to not knowing about that setting. So that's two people recently who tripped over it. I'm not sure. Any opinions?
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7449
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

I think on by default in new games is a good idea for that.
Post Reply