Exemple #1
0
bool tdispatcher::fire(const tevent event
		, twidget& target
		, const SDLKey key
		, const SDLMod modifier
		, const Uint16 unicode)
{
	return fire_event<tsignal_keyboard_function>(event
			, dynamic_cast<twidget*>(this)
			, &target
			, ttrigger_keyboard(key, modifier, unicode));
}
Exemple #2
0
bool tdispatcher::fire(const tevent event,
					   twidget& target,
					   const SDLKey key,
					   const SDLMod modifier,
					   const utf8::string& unicode)
{
	assert(find<tset_event_keyboard>(event, tevent_in_set()));
	return fire_event<tsignal_keyboard_function>(
			event,
			dynamic_cast<twidget*>(this),
			&target,
			ttrigger_keyboard(key, modifier, unicode));
}