Sorry but i dont know how i must declare it. :?
I do not recieve the input using messages. i use Directinput. so i dont know what those methods must do.

Just "Result := 0;" isn't enough to fix the problem. Something else must be done.