Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/05/26 02:58
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (Volkovstudio, TipmyPip, Quad, AndrewAMD, 1 invisible), 4,913 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Key combinations #488573
01/30/25 16:39
01/30/25 16:39
Joined: Sep 2009
Posts: 1,034
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,034
Budapest
I would like to use key combinations in my code. Which code could recognize for example these combos: Ctrl+A, Alt+M, Ctrl+Left click and so on...
I have made some researches in the documentation and in the forum without useful result.

Last edited by Aku_Aku; 01/30/25 16:40. Reason: expanded the list
Re: Key combinations [Re: Aku_Aku] #488579
01/31/25 07:21
01/31/25 07:21
Joined: Jun 2008
Posts: 56
Caucasus
VoroneTZ Offline
Junior Member
VoroneTZ  Offline
Junior Member

Joined: Jun 2008
Posts: 56
Caucasus
the most easy way

Code
while (1)
{
	if (key_a && key_ctrl)
	{ 
		vec_set(sky_color,vector(50,50,50)); //set grey color if ctrl+a is pressed
	}
	else
	{  
		vec_set(sky_color,vector(50,1,1)); //else set blue color
	}
	wait(1);
}

Last edited by VoroneTZ; 01/31/25 07:31.

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