Class: FingerPoken::Target::VNC::VNCClient

Inherits:
EventMachine::Connection
  • Object
show all
Includes:
EventMachine::Protocols::VNC::Client
Defined in:
lib/fingerpoken/vnc.rb

Overview

def keypress

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ VNCClient

Returns a new instance of VNCClient.



129
130
131
# File 'lib/fingerpoken/vnc.rb', line 129

def initialize(target)
  @target = target
end

Instance Method Details

#readyObject



133
134
135
136
137
138
139
140
# File 'lib/fingerpoken/vnc.rb', line 133

def ready
  @target.screen_x = @screen_width
  @target.screen_y = @screen_height
  @target.buttonmask = 0
  @target.x = (@screen_width / 2).to_i
  @target.y = (@screen_height / 2).to_i
  @target.ready()
end