I am submitting my entire code for the is_key-down function, so kornman00 can
access the database and include it. Thank you to ShadowHunter, for the code
earlier on.
--------------------------------------
/*
Yelo: Open Sauce SDK
Halo 1 (CE) Edition
See license\OpenSauce\Halo1_CE for specific license information
*/
using namespace std;
#include <iostream>
#include <winuser.h>
#include <windows.h>
static void* scripting_is_key_down_evaluate(void** arguments)
{
struct s_arguments {
datum_index unit_index;
short key;
}* args = CAST_PTR(s_arguments*, arguments);
TypeHolder result; result.pointer = NULL;
result.boolean = false;
if (!args->unit_index.IsNull())
{
if (GetKeyState(args->key) & 0x8000)
{
result.boolean = true;
}
}
return result.pointer;
};
Thank you.
Original issue reported on code.google.com by admir...@gmail.com on 4 Jun 2013 at 1:39
Original issue reported on code.google.com by
admir...@gmail.com
on 4 Jun 2013 at 1:39