Module: Vigilem::Win32API::ConsoleInputEvents

Included in:
Vigilem::Win32API
Defined in:
lib/vigilem/win32_api/console_input_events.rb

Overview

group of all the console input events listed by MSoft

Defined Under Namespace

Classes: FOCUS_EVENT_RECORD, KEY_EVENT_RECORD, MENU_EVENT_RECORD, MOUSE_EVENT_RECORD, WINDOW_BUFFER_SIZE_RECORD

Class Method Summary collapse

Class Method Details

.structsArray<VFFIStruct>

Returns:

  • (Array<VFFIStruct>)


71
72
73
# File 'lib/vigilem/win32_api/console_input_events.rb', line 71

def self.structs
  @_structs_ ||= constants.map {|const| const_get(const) }
end

.vk_hashTransmutableHash<Integer, Symbol>

Returns:

  • (TransmutableHash<Integer, Symbol>)


65
66
67
# File 'lib/vigilem/win32_api/console_input_events.rb', line 65

def self.vk_hash
  @_console_input_event_hash_ ||= vk_names.map.with_object(Support::TransmutableHash.new()) {|event_name, hsh| hsh[@events.const_get(event_name)] = event_name }
end

.vk_namesArray<Symbol>

Returns:

  • (Array<Symbol>)


59
60
61
# File 'lib/vigilem/win32_api/console_input_events.rb', line 59

def self.vk_names
  @_console_input_events_ ||= @events.constants.grep(/^(?!CTRL).*/)
end