Advertisement
KanjiCoder

Message_Loop_2022_12_22

Dec 22nd, 2022
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. while( window_should_be_open ){
  2.  
  3. struct t_msg msg = { 0 };
  4.  
  5. while( US3.PeekMessageW( &msg , d_win , 0 , 0 , 0x0001 ) > 0)
  6. {
  7.  
  8. US3.TranslateMessage( &msg );
  9. US3.DispatchMessageW( &msg );
  10.  
  11. switch( msg.m_message ){
  12. case ( 0x0100 /** WM_KEYDOWN **/ ) :{
  13.  
  14. F_TIK_W32_KEYDOWN();
  15.  
  16. };break;
  17. };;
  18.  
  19. };;
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement