Ok so I'm trying to understand how to fix/add hotkey functions into a packetbased program using the actions, sit,lie etc...
The only code I have for reference is Q's so if u can help would appreciate...
The blue is my understanding of the code... correct if im wrong pls...
if(packetID(b)==0x3f2 && b[22]==(byte)(int)0x51)
//If packet 0x3f2, subfunction 51 (Gesture) then...
{
int ac=(b[20]&0xff) | ((b[21]&0xff)<<8) | ((b[22]&0xff)<<16) | ((b[23]&0xff)<<24); //<-- so its checking these bytes for the type of gesture?? 1. Is this correct or what? 2. Have these bytes changed like some x and y's did...?
if(ac==0x10e) //<-- Is this for the "LIE" action? If so how do I find the other actions ie. sit...
{ // do actions...
//and if this is how it works... I should be able to add..
if(ac==0x___) and do other functions etc...??
Hope you understand my questions, and im awaiting some help or answers o.o thx
The only code I have for reference is Q's so if u can help would appreciate...
The blue is my understanding of the code... correct if im wrong pls...
if(packetID(b)==0x3f2 && b[22]==(byte)(int)0x51)
//If packet 0x3f2, subfunction 51 (Gesture) then...
{
int ac=(b[20]&0xff) | ((b[21]&0xff)<<8) | ((b[22]&0xff)<<16) | ((b[23]&0xff)<<24); //<-- so its checking these bytes for the type of gesture?? 1. Is this correct or what? 2. Have these bytes changed like some x and y's did...?
if(ac==0x10e) //<-- Is this for the "LIE" action? If so how do I find the other actions ie. sit...
{ // do actions...
//and if this is how it works... I should be able to add..
if(ac==0x___) and do other functions etc...??
Hope you understand my questions, and im awaiting some help or answers o.o thx