@@ -311,6 +311,20 @@ function SDL_GameControllerGetFirmwareVersion(gamecontroller: PSDL_GameControlle
311
311
function SDL_GameControllerGetSerial (gamecontroller: PSDL_GameController): PAnsiChar; cdecl;
312
312
external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_GameControllerGetSerial' { $ENDIF} { $ENDIF} ;
313
313
314
+ { **
315
+ * Get the Steam Input handle of an opened controller, if available.
316
+ *
317
+ * Returns an InputHandle_t for the controller that can be used with Steam Input API:
318
+ * https://partner.steamgames.com/doc/api/ISteamInput
319
+ *
320
+ * \param gamecontroller the game controller object to query.
321
+ * \returns the gamepad handle, or 0 if unavailable.
322
+ *
323
+ * \since This function is available since SDL 2.30.0.
324
+ *}
325
+ function SDL_GameControllerGetSteamHandle (gamecontroller: PSDL_GameController): cuint64; cdecl;
326
+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_GameControllerGetSteamHandle' { $ENDIF} { $ENDIF} ;
327
+
314
328
{ **
315
329
* Returns SDL_TRUE if the controller has been opened and currently connected,
316
330
* or SDL_FALSE if it has not.
@@ -514,6 +528,32 @@ function SDL_GameControllerGetSensorDataRate(gamecontroller: PSDL_GameController
514
528
function SDL_GameControllerGetSensorData (gamecontroller: PSDL_GameController; senstype: TSDL_SensorType; data: pcfloat; num_values: cint): cint; cdecl;
515
529
external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_GameControllerGetSensorData' { $ENDIF} { $ENDIF} ;
516
530
531
+ { **
532
+ * Get the current state of a game controller sensor with the timestamp of the
533
+ * last update.
534
+ *
535
+ * The number of values and interpretation of the data is sensor dependent.
536
+ * See SDL_sensor.h for the details for each type of sensor.
537
+ *
538
+ * \param gamecontroller The controller to query
539
+ * \param type The type of sensor to query
540
+ * \param timestamp A pointer filled with the timestamp in microseconds of the
541
+ * current sensor reading if available, or 0 if not
542
+ * \param data A pointer filled with the current sensor state
543
+ * \param num_values The number of values to write to data
544
+ * \return 0 or -1 if an error occurred.
545
+ *
546
+ * \since This function is available since SDL 2.26.0.
547
+ *}
548
+ function SDL_GameControllerGetSensorDataWithTimestamp (
549
+ gamecontroller: PSDL_GameController;
550
+ senstype: TSDL_SensorType;
551
+ timestamp: pcuint64;
552
+ data: pcfloat;
553
+ num_values: cint
554
+ ): cint; cdecl;
555
+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_GameControllerGetSensorDataWithTimestamp' { $ENDIF} { $ENDIF} ;
556
+
517
557
{ **
518
558
* Query whether a game controller has rumble support.
519
559
*}
0 commit comments