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?
Can't detect home/end KeyConstants
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- CaptainMaelstrom
- Party member
- Posts: 161
- Joined: Sat Jan 05, 2013 10:38 pm
Re: Can't detect home/end KeyConstants
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?
Are you sure it's not available through a "Fn" key combined with some other key?
Re: Can't detect home/end KeyConstants
What you need is a keybinding functionality in your game.
Who is online
Users browsing this forum: No registered users and 43 guests