engine/sdl/control.c
/*
Convert binary masked data to indexes
*/
Convert binary masked data to indexes
Convert binary masked data to indexes
static int flag_to_index(u64 flag)
{
	int index = 0;
	u64 bit = 1;
	while(!((bit<<index)&flag) && index<JOY_MAX_INPUTS-1) ++index;
	return index;
}
static int flag_to_index ( u64 flag ) { int index = 0 ; u64 bit = 1 ; while ( ! ( ( bit << index ) & flag ) && index < JOY_MAX_INPUTS - 1 ) ++ index ; return index ; }
Convert binary masked data to indexes
Convert binary masked data to indexes