Skip to content

Instantly share code, notes, and snippets.

@jkells
Created November 9, 2009 09:32
Show Gist options
  • Save jkells/229834 to your computer and use it in GitHub Desktop.
Save jkells/229834 to your computer and use it in GitHub Desktop.
-(id) initWithVect: (int16_t) dx: (int16_t) dy: (uint8_t) btn{
self = [super init];
[self AddByte: 6];
[self AddINT16: dx * 2];
[self AddINT16: dy * 2];
[self AddByte: btn];
return self;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment