hedgewars/hwengine.pas
changeset 2667 d9201436c6cf
parent 2663 d53918cd22bb
child 2669 4eec706e86b0
equal deleted inserted replaced
2666:2b8c8f16421e 2667:d9201436c6cf
   339                                                 if (tiltValue  > -1500) and (tiltValue <= 1500) and (movedbybuttons = false) then uKeys.isWalking:= false;  
   339                                                 if (tiltValue  > -1500) and (tiltValue <= 1500) and (movedbybuttons = false) then uKeys.isWalking:= false;  
   340                         end;
   340                         end;
   341                 end;*)
   341                 end;*)
   342 {$ELSE}
   342 {$ELSE}
   343 		SDL_MOUSEBUTTONDOWN: if event.button.button = SDL_BUTTON_WHEELDOWN then uKeys.wheelDown:= true;
   343 		SDL_MOUSEBUTTONDOWN: if event.button.button = SDL_BUTTON_WHEELDOWN then uKeys.wheelDown:= true;
   344 		SDL_MOUSEBUTTONUP: if event.button.button = SDL_BUTTON_WHEELDUP then uKeys.wheelUp:= true;
   344 		SDL_MOUSEBUTTONUP: if event.button.button = SDL_BUTTON_WHEELUP then uKeys.wheelUp:= true;
   345 		SDL_JOYAXISMOTION: ControllerAxisEvent(event.jaxis.which, event.jaxis.axis, event.jaxis.value);
   345 		SDL_JOYAXISMOTION: ControllerAxisEvent(event.jaxis.which, event.jaxis.axis, event.jaxis.value);
   346 		SDL_JOYHATMOTION: ControllerHatEvent(event.jhat.which, event.jhat.hat, event.jhat.value);
   346 		SDL_JOYHATMOTION: ControllerHatEvent(event.jhat.which, event.jhat.hat, event.jhat.value);
   347 		SDL_JOYBUTTONDOWN: ControllerButtonEvent(event.jbutton.which, event.jbutton.button, true);
   347 		SDL_JOYBUTTONDOWN: ControllerButtonEvent(event.jbutton.which, event.jbutton.button, true);
   348 		SDL_JOYBUTTONUP: ControllerButtonEvent(event.jbutton.which, event.jbutton.button, false);
   348 		SDL_JOYBUTTONUP: ControllerButtonEvent(event.jbutton.which, event.jbutton.button, false);
   349 {$ENDIF}
   349 {$ENDIF}
   625 ////////////////////////////////////////////////////////////////////////////////
   625 ////////////////////////////////////////////////////////////////////////////////
   626 /////////////////////////////// m a i n ////////////////////////////////////////
   626 /////////////////////////////// m a i n ////////////////////////////////////////
   627 ////////////////////////////////////////////////////////////////////////////////
   627 ////////////////////////////////////////////////////////////////////////////////
   628 
   628 
   629 begin
   629 begin
   630 WriteLnToConsole('Hedgewars ' + cVersionString + ' engine (' + inttostr(cNetProtoVersion) + ')');
   630 WriteLnToConsole('Hedgewars ' + cVersionString + ' engine (network protocol: ' + inttostr(cNetProtoVersion) + ')');
   631 GetParams;
   631 GetParams;
   632 // FIXME -  hack in font with support for CJK
   632 // FIXME -  hack in font with support for CJK
   633 if (cLocaleFName = 'zh_CN.txt') or (cLocaleFName = 'zh_TW.txt') or (cLocaleFName = 'ja.txt') then
   633 if (cLocaleFName = 'zh_CN.txt') or (cLocaleFName = 'zh_TW.txt') or (cLocaleFName = 'ja.txt') then
   634     Fontz:= FontzCJK;
   634     Fontz:= FontzCJK;
   635 
   635