From b421d4e7e06f977436b6e6195b95ca44d884e0c0 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 2 Jun 2019 20:50:28 -0400 Subject: Add guile-sdl2 manual. --- manuals/guile-sdl2/Events.html | 581 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 581 insertions(+) create mode 100644 manuals/guile-sdl2/Events.html (limited to 'manuals/guile-sdl2/Events.html') diff --git a/manuals/guile-sdl2/Events.html b/manuals/guile-sdl2/Events.html new file mode 100644 index 0000000..54b7f34 --- /dev/null +++ b/manuals/guile-sdl2/Events.html @@ -0,0 +1,581 @@ + + + + + + +Events (Guile-SDL2) + + + + + + + + + + + + + + + + + + + + +
+

+Next: , Previous: , Up: API Reference   [Contents][Index]

+
+
+ +

3.4 Events

+ +
+
(use-modules (sdl2 events))
+
+ +
+
Procedure: make-quit-event timestamp
+
+ +
+
Procedure: quit-event? e
+

Return #t if e is a quit event. +

+ +
+
Procedure: quit-event-timestamp e
+
+ +
+
Procedure: make-window-event timestamp window-id type vector
+
+ +
+
Procedure: window-event? e
+

Return #t if e is a window event. +

+ +
+
Procedure: window-shown-event? e
+

Return #t if e is a window shown event. +

+ +
+
Procedure: window-hidden-event? e
+

Return #t if e is a window hidden event. +

+ +
+
Procedure: window-exposed-event? e
+

Return #t if e is a window exposed event. +

+ +
+
Procedure: window-moved-event? e
+

Return #t if e is a window moved event. +

+ +
+
Procedure: window-resized-event? e
+

Return #t if e is a window resized event. +

+ +
+
Procedure: window-size-changed-event? e
+

Return #t if e is a window size changed event. +

+ +
+
Procedure: window-minimized-event? e
+

Return #t if e is a window minimized event. +

+ +
+
Procedure: window-maximized-event? e
+

Return #t if e is a window maximized event. +

+ +
+
Procedure: window-restored-event? e
+

Return #t if e is a window restored event. +

+ +
+
Procedure: window-enter-event? e
+

Return #t if e is a window enter event. +

+ +
+
Procedure: window-leave-event? e
+

Return #t if e is a window leave event. +

+ +
+
Procedure: window-focus-gained-event? e
+

Return #t if e is a window focus gained event. +

+ +
+
Procedure: window-focus-lost-event? e
+

Return #t if e is a window focus lost event. +

+ +
+
Procedure: window-closed-event? e
+

Return #t if e is a window closed event. +

+ +
+
Procedure: window-event-timestamp e
+
+ +
+
Procedure: window-event-window-id e
+
+ +
+
Procedure: window-event-type e
+
+ +
+
Procedure: window-event-vector e
+
+ +
+
Procedure: make-keyboard-event timestamp window-id pressed? repeat? key scancode modifiers
+
+ +
+
Procedure: keyboard-event? e
+

Return #t if e is a keyboard event. +

+ +
+
Procedure: keyboard-down-event? e
+

Return #t if e is a key press event. +

+ +
+
Procedure: keyboard-up-event? e
+

Return #t if e is a key release event. +

+ +
+
Procedure: keyboard-event-timestamp e
+
+ +
+
Procedure: keyboard-event-window-id e
+
+ +
+
Procedure: keyboard-event-pressed? e
+
+ +
+
Procedure: keyboard-event-repeat? e
+
+ +
+
Procedure: keyboard-event-key e
+
+ +
+
Procedure: keyboard-event-scancode e
+
+ +
+
Procedure: keyboard-event-modifiers e
+
+ +
+
Procedure: make-text-input-event timestamp window-id text
+
+ +
+
Procedure: text-input-event? e
+

Return #t if e is a text input event. +

+ +
+
Procedure: text-input-event-timestamp e
+
+ +
+
Procedure: text-input-event-window-id e
+
+ +
+
Procedure: text-input-event-text e
+
+ +
+
Procedure: make-mouse-button-event timestamp window-id which button pressed? clicks x y
+
+ +
+
Procedure: mouse-button-event? e
+

Return #t if e is a mouse button event. +

+ +
+
Procedure: mouse-button-down-event? e
+

Return #t if e is a mouse button down event. +

+ +
+
Procedure: mouse-button-up-event? e
+

Return #t if e is a mouse button up event. +

+ +
+
Procedure: mouse-button-event-timestamp e
+
+ +
+
Procedure: mouse-button-event-window-id e
+
+ +
+
Procedure: mouse-button-event-which e
+
+ +
+
Procedure: mouse-button-event-button e
+
+ +
+
Procedure: mouse-button-event-pressed? e
+
+ +
+
Procedure: mouse-button-event-clicks e
+
+ +
+
Procedure: mouse-button-event-x e
+
+ +
+
Procedure: mouse-button-event-y e
+
+ +
+
Procedure: make-mouse-motion-event timestamp window-id which buttons x y x-rel y-rel
+
+ +
+
Procedure: mouse-motion-event? e
+

Return #t if e is a mouse motion event. +

+ +
+
Procedure: mouse-motion-event-timestamp e
+
+ +
+
Procedure: mouse-motion-event-window-id e
+
+ +
+
Procedure: mouse-motion-event-which e
+
+ +
+
Procedure: mouse-motion-event-buttons e
+
+ +
+
Procedure: mouse-motion-event-x e
+
+ +
+
Procedure: mouse-motion-event-y e
+
+ +
+
Procedure: mouse-motion-event-x-rel e
+
+ +
+
Procedure: mouse-motion-event-y-rel e
+
+ +
+
Procedure: make-joystick-axis-event timestamp which axis value
+
+ +
+
Procedure: joystick-axis-event? e
+

Return #t if e is a joystick axis event. +

+ +
+
Procedure: joystick-axis-event-timestamp e
+
+ +
+
Procedure: joystick-axis-event-which e
+
+ +
+
Procedure: joystick-axis-event-button e
+
+ +
+
Procedure: joystick-axis-event-pressed? e
+
+ +
+
Procedure: make-joystick-ball-event timestamp which ball x-rel y-rel
+
+ +
+
Procedure: joystick-ball-event? e
+

Return #t if e is a joystick ball event. +

+ +
+
Procedure: joystick-ball-event-timestamp e
+
+ +
+
Procedure: joystick-ball-event-which e
+
+ +
+
Procedure: joystick-ball-event-ball e
+
+ +
+
Procedure: joystick-ball-event-x-rel e
+
+ +
+
Procedure: joystick-ball-event-y-rel e
+
+ +
+
Procedure: make-joystick-hat-event timestamp which hat value
+
+ +
+
Procedure: joystick-hat-event? e
+

Return #t if e is a joystick hat event. +

+ +
+
Procedure: joystick-hat-event-timestamp e
+
+ +
+
Procedure: joystick-hat-event-which e
+
+ +
+
Procedure: joystick-hat-event-hat e
+
+ +
+
Procedure: joystick-hat-event-value e
+
+ +
+
Procedure: make-joystick-device-event timestamp which action
+
+ +
+
Procedure: joystick-device-event? e
+

Return #t if e is a joystick device event. +

+ +
+
Procedure: joystick-device-event-timestamp e
+
+ +
+
Procedure: joystick-device-event-which e
+
+ +
+
Procedure: joystick-device-event-action e
+
+ +
+
Procedure: make-controller-axis-event timestamp which axis value
+
+ +
+
Procedure: controller-axis-event? e
+

Return #t if e is a game controller axis event. +

+ +
+
Procedure: controller-axis-event-timestamp e
+
+ +
+
Procedure: controller-axis-event-which e
+
+ +
+
Procedure: controller-axis-event-axis e
+
+ +
+
Procedure: controller-axis-event-value e
+
+ +
+
Procedure: make-controller-button-event timestamp which button pressed?
+
+ +
+
Procedure: controller-button-event? e
+

Return #t if event is a game controller button event. +

+ +
+
Procedure: controller-button-down-event? e
+
+ +
+
Procedure: controller-button-up-event? e
+
+ +
+
Procedure: controller-button-event-timestamp e
+
+ +
+
Procedure: controller-button-event-which e
+
+ +
+
Procedure: controller-button-event-button e
+
+ +
+
Procedure: controller-button-event-pressed? e
+
+ +
+
Procedure: make-controller-device-event timestamp which action
+
+ +
+
Procedure: controller-device-event? e
+

Return #t if event is a game controller device event. +

+ +
+
Procedure: controller-added-event? e
+

Return #t if event is a game controller device event with the +’added’ action. +

+ +
+
Procedure: controller-removed-event? e
+

Return #t if event is a game controller device event with the +’removed’ action. +

+ +
+
Procedure: controller-remapped-event? e
+

Return #t if event is a game controller device event with the +’remapped’ action. +

+ +
+
Procedure: controller-device-event-timestamp e
+
+ +
+
Procedure: controller-device-event-which e
+
+ +
+
Procedure: controller-device-event-action e
+
+ +
+
Procedure: poll-event
+
+ +
+
+

+Next: , Previous: , Up: API Reference   [Contents][Index]

+
+ + + + + -- cgit v1.2.3