</pre>
<p>Available type constants:</p>
<ul>
- <li><a href="#active">SDL_ACTIVEEVENT</a> - Application visibility event structure </li>
+ <li><a href="#Application_visibility_events">SDL_ACTIVEEVENT</a> - Application visibility event structure </li>
<li><a href="#active">SDL_KEYDOWN</a> - Keyboard event structure </li>
<li><a href="#active">SDL_KEYUP</a> - Keyboard event structure </li>
<li><a href="#active">SDL_MOUSEMOTION</a> - Mouse motion event structure </li>
programmer, the only requirement is that type is a value from <code>SDL_USEREVENT</code> to <code>SDL_NUMEVENTS-1</code> (inclusive)</p>
<pre> my $event = SDL::Event->new();
$event->type ( SDL_USEREVENT + 3 );
- $event->event_code(10);
- $event->data1('hello event');
+ $event->user_code(10);
+ $event->user_data1('hello event');
SDL::Events::push_event($event);