app will not respond with keyboard

whitesaint

cocoa love
hi my name is Roger, and i have a problem with the events and everything. i properly defined all the terms that needed to be defined and it compiles with no warnings or errors, am i doing somthing wrong here?
<br>
-(void)update
{
if(leftKeyPressed)
{
[ashleyImage compositeToPoint:NSZeroPoint operation:NSCompositeSourceOver];
}
else if(rightKeyPressed)
{
[rogerImage compositeToPoint:NSZeroPoint operation:NSCompositeSourceOver];
}

}
 
What does your app now? Or what does it not?
Where are the variables rightKeyPressed and leftKeyPressed set/reset? Are your images properly initialized?
 
Back
Top