Added hook_factory helper function for EventHandler specs.
Added hook_factory helper function for EventHandler specs.

singpolyma/rubygame,firstval/rubygame,rubygame/rubygame,Dami-coding/rubygame,singpolyma/rubygame