lispgames / cl-sdl2

Common Lisp bindings for SDL2 using C2FFI.
MIT License
304 stars 82 forks source link

Documentation. #152

Open Smurfy98 opened 2 years ago

Smurfy98 commented 2 years ago

Hello,

I'd like to know if there is any documentation available and if not, if it's planned to add any. What interests me the most is the available even types for with-event-loop, and their respective parameters. I can't find any example that uses mousebuttondown for example. I've looked at events.lisp but only figured out which event-types are available.

Regards

Filipp-Druan commented 1 year ago

Hello! Are you found any docs? Ore can you help my with this library?

trwa commented 1 year ago

I can't find any example that uses mousebuttondown for example.

@Smurfy98 does the following work for you?

(:mousebuttondown
         (:button button)
         (format *standard-output* 
                 "~s~%" (case button
                          (1 "left")
                          (2 "middle")
                          (3 "right"))))

@Filipp-Druan AFAIK there is no documentation. A good starting point might be the TatriX port of the Lazy Foo tutorial series, although not complete.