Key mapping problem

Posted By: gamers

Key mapping problem - 10/06/14 21:12

Hi, everyone wink

Is there any way to designate some keys like ü, ç and ş; ???
I cant find the key functions, scancodes and key mappings???
Posted By: rayp

Re: Key mapping problem - 10/08/14 00:43

Maybe
Code:
inkey

could be an option.

Example from Manual, checking the ENTER Key:
Code:
STRING* entry_str = "                      "; // long empty string
...
var key = inkey(entry_str); // wait until [enter] pressed
if (key == 13)
  process_entry(entry_str); 
...

STRING* string1 = "";
STRING* string2 = "";
...
while(1) {
   if (inchar(string1) == 13) break;
   str_cat(string2,string1);
}

See Manual "Input|Output/Key mapping" for some scancodes.

Greets
Posted By: sivan

Re: Key mapping problem - 10/08/14 06:59

I had a similar question earlier, and I got an answer from a user to use winapi to solve it, no lite-c solution. but I postponed to solve this problem...
Posted By: rayp

Re: Key mapping problem - 10/08/14 20:01

Api was my first idea, but never done with 3dgs ^^ ...guess HeelX could help here, if hes around
Posted By: Redeemer

Re: Key mapping problem - 10/08/14 20:47

1. Give up inferior native language
2. Buy english keyboard
3. ???
4. Profit

Click to reveal..
More seriously, you can probably figure out the correct keycodes really easily by just writing a small app that reports it directly with inkey, but if that doesn't work, I would not say it's worth it to dig into the windows API just for this tongue
© 2024 lite-C Forums