Module: VRKeyFeasible

Includes:
VRMessageHandler
Defined in:
lib/vr/vrhandler.rb

Constant Summary

Constants included from VRMessageHandler

VRMessageHandler::PREHANDLERSTR

Instance Method Summary collapse

Methods included from VRMessageHandler

#acceptEvents, #addHandler, #addNoRelayMessages, #controlmsg_dispatching, #deleteHandler, #msghandlerinit, #selfmsg_dispatching

Instance Method Details

#keyfeasibleinitObject

VRKeyFeasible

This is a module to sense keyboard input.

Event Handlers

— self_char(keycode,keydata)

This method is fired when WM_KEYUP and WM_KEYDOWN are translated into 
keyboard input messages.

— self_deadchar(keycode,keydata) — self_syschar(keycode,keydata) — self_sysdeadchar(keycode,keydata)



118
119
120
121
122
123
124
# File 'lib/vr/vrhandler.rb', line 118

def keyfeasibleinit
  addHandler(0x102,"char",     MSGTYPE::ARGINTINT,nil)      # WM_CHAR
  addHandler(0x103,"deadchar", MSGTYPE::ARGINTINT,nil)      # WM_DEADCHAR
  addHandler(0x106,"syschar",  MSGTYPE::ARGINTINT,nil)      # WM_SYSCHAR
  addHandler(0x107,"sysdeadchar", MSGTYPE::ARGINTINT,nil)   # WM_SYSDEADCHAR
  acceptEvents [0x102,0x103,0x106,0x107]
end

#vrinitObject



125
126
127
128
# File 'lib/vr/vrhandler.rb', line 125

def vrinit
  super
  keyfeasibleinit
end