Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   keyPressed for gamepads (https://forums.graalonline.com/forums/showthread.php?t=72865)

napo_p2p 03-16-2007 08:39 AM

keyPressed for gamepads
 
The keypressed event isn't being called for gamepads... I was wondering if there was a special events for this. Anyone know?

Kristi 03-16-2007 11:40 AM

Quote:

Originally Posted by napo_p2p (Post 1289155)
The keypressed event isn't being called for gamepads... I was wondering if there was a special events for this. Anyone know?

joypad buttons/pads fall under their associated keydown, so you can check that in a timeout. I always found keypressed unreliable, because it faulters on both holding a button down and pressing it fast rapidly...

Angel_Light 03-16-2007 02:02 PM

Use keydown/keyup. Like Kristi said I found keypressed is very unreliable. As for knowing the code for the gamepad, I'm not quite to sure. :.

napo_p2p 03-16-2007 06:52 PM

Quote:

Originally Posted by Kristi (Post 1289179)
joypad buttons/pads fall under their associated keydown, so you can check that in a timeout. I always found keypressed unreliable, because it faulters on both holding a button down and pressing it fast rapidly...

Yeah, that's what I have been doing. I was just wondering if there was a keypressed like event too.


All times are GMT +2. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.