[fpc-pascal] SDL2 Event Registration (and case statements)
    Guillermo Martínez Jiménez 
    gmartinez at burdjia.com
       
    Tue Jun 27 09:59:21 CEST 2023
    
    
  
El Sun, 25 Jun 2023 13:42:00 -0300
Rafael Picanço via fpc-pascal <fpc-pascal at lists.freepascal.org>
escribió:
> Thanks Guilhermo,
You welcome. :)
> 
> Just to clarify, I do have a limited number of events. Lets say, 2
> events. So, using the SDL_RegisterEvents function, is it possible to
> define these two new events as normal constants so they will be known
> at compile time and will make Free Pascal case statements happy?
Yes, you can.  But be careful that no other events are registered before
yours.
> 
> Best,
> R
Regards,
Guillermo Martínez
    
    
More information about the fpc-pascal
mailing list