Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
6 registered members (TipmyPip, Niels, dBc, Ed_Love, 3run, 1 invisible), 17,843 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,110
Germany
rayp Offline

X
rayp  Offline

X

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

X
rayp  Offline

X

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