Skip to main content
GameDev.net gamedev.net
🔒 Locked

DirectInput and text input

Started by nail85 May 12, 2003 at 2:15 AM 0 replies 450+ views
Original Post
nail85
nail85
If I use DirectInput what is the easyest way to get text from user? I want simply get nickname of the player in one place. But I found that key codes in DI isn''t continous. So should I write huge block like this char c; if (IsKeyPress(DIK_A)) c = ''a''; else if (IsKeyPress(DIK_B) c = ''b''; else if (...) ... ... Or I have some more convinient way to do this. If not then how I can determine is caps lock light is on or not.

Topic Locked

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

Sign in to reply to this topic.