Advertisement
Guest User

Untitled

a guest
May 25th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.32 KB | None | 0 0
  1. struct Event
  2. {
  3.     EventType type = EventType.T_EV_None;
  4.     int num_elements;
  5.     @property joystickButton()
  6.     {
  7.         enforce(type == EventType.T_EV_Input_JoystickButton);
  8.         return cast(JoystickButton*)(&this);
  9.     }
  10.     @property appClose()
  11.     {
  12.         enforce(type == EventType.T_EV_ExitSession);
  13.         return cast(AppClose*)(&this);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement