his</span>);<br/>
	<br/>
	<span class="codecomm">// removes an event listener</span><br/>
	keypress.<span class="codefunc">clear</span>();
</code>

<p>
	If you want to, you can also create new event types.
</p>

<code>
	<span class="codekeyw">event_t</span> frog_event = <span class="codeclass">Event</span>::<span class="codefunc">Register</span>(<span class="codelit">"frog-event"</span>);
</code>

<h2>
	Scripting in Lua
</h2>

<hr/>

<p>
	Emitting an event is very similar to how it is done with the C++ API.