Binding - and =

F

FBD6370

Guest
Is there a way to bind things to - and = next to backspace, instead of just the numpad's vk_add and vk_subtract?

thanks in advance.
 

GMWolf

aka fel666
Could be a good extension: key_get_keycode

Would check the keyboard layout and all and return the keycode.
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
Tested my ord(" ") suggestion and it doesn't work.

It is a shame to have to use 'magic numbers' as these often break on different keyboard layouts.
They are not "magic numbers". There's even a MSDN page dedicated to them (although the ones shown there are those that are to be passed into keyboard_check_direct in GM).
 
I

icuurd12b42

Guest
keyboard_check_direct and keyboard_check are the same now...

so. you cant query the mouse buttons with it as you could in gm8 BUT the media keys still work, but printscreen and a few others wont be detected
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
keyboard_check_direct and keyboard_check are the same now...

so. you cant query the mouse buttons with it as you could in gm8 BUT the media keys still work, but printscreen and a few others wont be detected
On Windows it seems to work perfectly fine as of the current version - I've already used it in combination with my experimental DLL for doing some real-time debugging.
 
Top