|
|
typo in keys.c template
#333521
07/16/10 22:19
07/16/10 22:19
|
Joined: Dec 2006
Posts: 1,086 Queensland - Australia
Nidhogg
OP
Serious User
|
OP
Serious User
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
|
There is a type in the new keys.c
byte _keys_down[256];
// returns nonzero when the given key was hit since the last call
function key_hit(var num)
{
if (num <= 0 || num >= 256) return 0;
if(!_keys_down[num] && key_pressed(num))
{
_keys_down[num] = 1;
return 1;
}
_keys_down[num] = key_pressed(num);
return 0;
}
// returns nonzero when the key with the given name was hit
function key_hit(STRING* keystr)
{
return key_hit(key_for_str(keystr));
}
As you can see there a two key_hit() functions.
Windows XP SP3 Intel Dual Core CPU: E5200 @ 2.5GHz 4.00GB DDR3 Ram ASUS P5G41T-M LX PCIE x16 GeForce GTS 450 1Gb SB Audigy 4 Spyware Doctor with AntiVirus
|
|
|
Re: typo in keys.c template
[Re: Lukas]
#333628
07/17/10 19:15
07/17/10 19:15
|
Joined: Dec 2006
Posts: 1,086 Queensland - Australia
Nidhogg
OP
Serious User
|
OP
Serious User
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
|
Oh ok, thanks for explaining.
Windows XP SP3 Intel Dual Core CPU: E5200 @ 2.5GHz 4.00GB DDR3 Ram ASUS P5G41T-M LX PCIE x16 GeForce GTS 450 1Gb SB Audigy 4 Spyware Doctor with AntiVirus
|
|
|
|
|
|