ErrorCode:class RpKeyBoard { private: unsigned int currentButtonX; //storage for the current position on keyboard --> x-as unsigned int currentButtonY; //storage for the current position on keyboard -->y-as public: int buttonPushed; unsigned int Buttons; void goTo(int x , int y); void getCurrentButton(); }; RpKeyBoard keypad; //KEY pad init RpKeyBoard filepad; void RpKeyBoard::getCurrentButton() { if(buttonPushed) { Buttons == currentButtonX * currentButtonY; } else { Buttons == 0; } } void RpReadBuffer(RpKeyBoard *keyBoard , int count) { for(loop = 0; loop < count; loop++) { keyBoard.getCurrentButton(); } }
how do i fix this?Code:error: request for member 'getCurrentButton' in 'keyBoard', which is of non-class type 'RpKeyBoard*'



LinkBack URL
About LinkBacks



