Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Key mapping problem #446153
10/06/14 21:12
10/06/14 21:12
Joined: Jan 2012
Posts: 108
G
gamers Offline OP
Member
gamers  Offline OP
Member
G

Joined: Jan 2012
Posts: 108
Hi, everyone wink

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

Last edited by gamers; 10/06/14 21:13.
Re: Key mapping problem [Re: gamers] #446195
10/08/14 00:43
10/08/14 00:43
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
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


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Key mapping problem [Re: rayp] #446206
10/08/14 06:59
10/08/14 06:59
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
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...


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Key mapping problem [Re: sivan] #446251
10/08/14 20:01
10/08/14 20:01
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Api was my first idea, but never done with 3dgs ^^ ...guess HeelX could help here, if hes around


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Key mapping problem [Re: rayp] #446254
10/08/14 20:47
10/08/14 20:47
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
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


Eats commas for breakfast.

Play Barony: Cursed Edition!

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1