Guest User

Untitled

a guest
Oct 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. So i have something like
  2.  
  3. SDL_Event a;
  4. Inputhandle b;
  5. b.handleinput(&a);
  6.  
  7. then handleinput tries to access type
  8.  
  9. Inputhandle::handleinput(SDL_Event *a)
  10. if(*a->type==SDL_KEYDOWN)
  11. etc etc
  12.  
  13. I get error at the if statement "invalid type arguement 'unary *'"
  14. btw 'a' isnt null i just wrote it like that here
Add Comment
Please, Sign In to add comment