Skip to main content
gamedev.net
🔒 Locked

Keyboard input

Started by Zombie Jan 19, 2001 at 12:15 PM 2 replies 300+ views
Original Post
Zombie
Zombie
A simple problem, I guess.. I want to receive input only when a key is pressed down, not all the time when it''s down. This code isn''t right, I have no idea how I should do this. If kbState.key(CONST_DIKEYFLAGS.DIK_F1) Then bF1 = True else bF1 = False End If
Simon Price
Simon Price
I can''t see anything wrong with that. Here''s a link to my DX 7/8 Input tutorials www.VBgames.co.uk/tutorials.htm
Simon PriceSi@VBgames.co.ukwww.VBgames.co.uk
cheez_keeper
cheez_keeper
I had the same problem. i created a variable that was set to 0 on the keyup and set to 1 on the keydown then if i came back through and the key was still down (the variable was 1) i just skipped over it

Brett Lynnes
cheez_keeper@hotmail.com
Brett Lynnescheez_keeper@hotmail.com

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.