File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ interface
154
154
{ $I sdlguid.inc} // 2.24.0
155
155
{ $I sdljoystick.inc} // 2.24.0
156
156
{ $I sdlsensor.inc} // 2.26.0
157
- { $I sdlgamecontroller.inc} // 2.24 .0
157
+ { $I sdlgamecontroller.inc} // 2.26 .0
158
158
{ $I sdlhaptic.inc} // 2.26.2
159
159
{ $I sdlhidapi.inc} // 2.0.18
160
160
{ $I sdltouch.inc} // 2.24.0
Original file line number Diff line number Diff line change @@ -514,6 +514,32 @@ function SDL_GameControllerGetSensorDataRate(gamecontroller: PSDL_GameController
514
514
function SDL_GameControllerGetSensorData (gamecontroller: PSDL_GameController; senstype: TSDL_SensorType; data: pcfloat; num_values: cint): cint; cdecl;
515
515
external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_GameControllerGetSensorData' { $ENDIF} { $ENDIF} ;
516
516
517
+ { **
518
+ * Get the current state of a game controller sensor with the timestamp of the
519
+ * last update.
520
+ *
521
+ * The number of values and interpretation of the data is sensor dependent.
522
+ * See SDL_sensor.h for the details for each type of sensor.
523
+ *
524
+ * \param gamecontroller The controller to query
525
+ * \param type The type of sensor to query
526
+ * \param timestamp A pointer filled with the timestamp in microseconds of the
527
+ * current sensor reading if available, or 0 if not
528
+ * \param data A pointer filled with the current sensor state
529
+ * \param num_values The number of values to write to data
530
+ * \return 0 or -1 if an error occurred.
531
+ *
532
+ * \since This function is available since SDL 2.26.0.
533
+ *}
534
+ function SDL_GameControllerGetSensorDataWithTimestamp (
535
+ gamecontroller: PSDL_GameController;
536
+ senstype: TSDL_SensorType;
537
+ timestamp: pcuint64;
538
+ data: pcfloat;
539
+ num_values: cint
540
+ ): cint; cdecl;
541
+ external SDL_LibName { $IFDEF DELPHI} { $IFDEF MACOS} name ' _SDL_GameControllerGetSensorDataWithTimestamp' { $ENDIF} { $ENDIF} ;
542
+
517
543
{ **
518
544
* Query whether a game controller has rumble support.
519
545
*}
You can’t perform that action at this time.
0 commit comments