Using the Numpad "5"

Posted By: elevationmind

Using the Numpad "5" - 12/30/12 13:49

Hallo,

I have the problem, that LIte-C doesn't seem to recognise the numpad as numbers - no matter if I have numlock on or of.

But I despreately need the numpad "5" to work for moving my player back.

How do I get this to work?

My action looks like this:

var distance = (key_slash-key_5)*9*time_step;

But it only works with the "normal" 5 on the keyboard.

I tryed adding to main/to action:

key_set(76,on_5);

To tell the numpad 5 (Scancode 76) to act like 5, but it just doesn't work.

Can somebody help me? How do I get the numpad 5 to work like the arrow down?

Thanks in advance!
Posted By: elevationmind

Re: Using the Numpad "5" - 12/30/12 14:04

Oh, I just solved my own problem with:

var distance = (key_slash-key_pressed(76))*9*time_step;

So I hope I could halp someone else with this:)!
© 2024 lite-C Forums