Setting keyboard keys? eg #define KEY_EXAMPLE 1 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Setting keyboard keys? eg #define KEY_EXAMPLE 1 (
/showthread.php?tid=492635)
Setting keyboard keys? eg #define KEY_EXAMPLE 1 -
Phil_Cutcliffe - 04.02.2014
I would like to know if it's possible to set a custom key. For example the DELETE key on your keyboard. Just like I can do
KEY_FIRE
I would like to set for example
#define KEY_DELETE 749
Is it possible to do this? If so how do I know what number is each key?
Re: Setting keyboard keys? eg #define KEY_EXAMPLE 1 -
Borg - 04.02.2014
No, you cannot do that. You can use only keys from this list:
https://sampwiki.blast.hk/wiki/Keys