DEADSOFTWARE

Holmes UI: more FlexBox fixes
[d2df-sdl.git] / src / engine / e_input.pas
index 6e208d7ecd1920bf6901feb5534897f8452bf3be..5cf17a788264ffc00dde1b8f1e524135680878a0 100644 (file)
@@ -161,7 +161,7 @@ begin
     begin
       Inc(c);
       e_WriteLog('Input: Opened SDL joystick ' + IntToStr(i) + ' (' + SDL_JoystickName(joy) +
-                 ') as joystick ' + IntToStr(c) + ':', MSG_NOTIFY);
+                 ') as joystick ' + IntToStr(c) + ':', TMsgType.Notify);
       SetLength(Joysticks, c);
       with Joysticks[c-1] do
       begin
@@ -173,7 +173,7 @@ begin
         // TODO: find proper solution for this xbox trigger shit
         for j := 0 to Axes do AxisZero[j] := SDL_JoystickGetAxis(joy, j);
         e_WriteLog('       ' + IntToStr(Axes) + ' axes, ' + IntToStr(Buttons) + ' buttons, ' +
-                   IntToStr(Hats) + ' hats.', MSG_NOTIFY);
+                   IntToStr(Hats) + ' hats.', TMsgType.Notify);
       end;
     end;
   end;
@@ -207,12 +207,15 @@ end;
 
 
 function PollKeyboard(): Boolean;
+{
 var
   Keys: PByte;
   NKeys: Integer;
   i: NativeUInt;
+}
 begin
   Result := False;
+  {
   Keys := SDL_GetKeyboardState(@NKeys);
   if (Keys = nil) or (NKeys < 1) then Exit;
   for i := 0 to NKeys do
@@ -220,6 +223,7 @@ begin
     if ((PByte(NativeUInt(Keys) + i)^) <> 0) then KeyBuffer[i] := false;
   end;
   for i := NKeys to High(KeyBuffer) do KeyBuffer[i] := False;
+  }
 end;
 
 function PollJoysticks(): Boolean;