Page 1 of 1

Can't detect home/end KeyConstants

Posted: Mon May 07, 2018 7:28 pm
by CaptainMaelstrom
My laptop doesn't have a discrete home or end key. Instead, I have to enable Num Lock and then press keypad 7 or keypad 1 respectively to send home/end keypresses to applicaitons.

All the applications I use regularly seem to detect home/end just find when I have num lock enabled. However, I can't figure out how to detect them in LOVE2D. Even when num lock is enabled, LOVE2D only sees my keypresses as "kp7" and "kp1" KeyConstants. Is this a bug, or am I missing something?

Re: Can't detect home/end KeyConstants

Posted: Mon May 07, 2018 8:50 pm
by pgimeno
Sounds normal to me. In a regular keyboard, you can also press Home and End by disabling NumLock and pressing the keypad 1 and 7 keys, so that's business as usual. If your laptop doesn't have these, then you have no way to press them.

Are you sure it's not available through a "Fn" key combined with some other key?

Re: Can't detect home/end KeyConstants

Posted: Mon May 07, 2018 9:27 pm
by raidho36
What you need is a keybinding functionality in your game.