Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 10/15/25 20:44
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (Quad, AndrewAMD, TipmyPip, 1 invisible), 6,244 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 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,032
Budapest
Aku_Aku Offline OP
Serious User
Aku_Aku  Offline OP
Serious User

Joined: Sep 2009
Posts: 1,032
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: 52
Caucasus
VoroneTZ Offline
Junior Member
VoroneTZ  Offline
Junior Member

Joined: Jun 2008
Posts: 52
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