Karl Zylinski 6 달 전
부모
커밋
0297e5355a
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      karl2d.doc.odin

+ 9 - 0
karl2d.doc.odin

@@ -42,6 +42,10 @@ set_window_position :: proc(x: int, y: int)
 
 set_window_size :: proc(width: int, height: int)
 
+// Fetch the scale of the window. This usually comes from some DPI scaling setting in the OS.
+// 1 means 100% scale, 1.5 means 150% etc.
+get_window_scale :: proc() -> f32
+
 set_window_flags :: proc(flags: Window_Flags)
 
 // Flushes the current batch. This sends off everything to the GPU that has been queued in the
@@ -101,6 +105,11 @@ gamepad_button_is_held :: proc(gamepad: Gamepad_Index, button: Gamepad_Button) -
 
 get_gamepad_axis :: proc(gamepad: Gamepad_Index, axis: Gamepad_Axis) -> f32
 
+// Set the left and right vibration motor speed. The range of left and right is 0 to 1. Note that on
+// most gamepads, the left motor is "low frequency" and the right motor is "high frequency". They do
+// not vibrate with the same speed.
+set_gamepad_vibration :: proc(gamepad: Gamepad_Index, left: f32, right: f32)
+
 //---------//
 // DRAWING //
 //---------//