Zona Arcade. Construye, Restaura y Decora tu Máquina Arcade y Pinball.

Tutorial: Configurar controles para cada emulador en Hyperspin por módulos, Lanzamiento automatizado desde hyperspin

« Older   Newer »
  Share  
chorny
view post Posted on 7/3/2012, 00:39 by: chorny     +1   -1




QUOTE (elreypescador @ 7/3/2012, 00:25) 
Pues lo acabo de leer en otro hilo, eso me pasa por no haber probado un Ipac... El caso es que como sabemos, el Ipac va por puerto PS2, y utiliza la conexión del teclado, por lo que funciona como tal. Así que Joytokey no lo reconoce como interfaz de control y no son compatibles entre sí. Hay que buscar mas posibilidades y añadirlas al tutorial, pero esto cuando tenga un Ipac en mis manos, jejejejeje... Un saludo!!!

No hace falta. Ya lo he hecho yo y pongo aqui como. Gracias al compañero Lasthome he configurado el raton con el autohotkey, con lo que solo hay que editar el modulo de scummmv en este caso y poner esto:

QUOTE
up::MouseMove, 0, -10, 0, R ; Win+UpArrow hotkey => Move cursor upward
Down::MouseMove, 0, 10, 0, R ; Win+DownArrow => Move cursor downward
Left::MouseMove, -10, 0, 0, R ; Win+LeftArrow => Move cursor to the left
Right::MouseMove, 10, 0, 0, R ; Win+RightArrow => Move cursor to the right

LCtrl::LButton ; LeftWin + RightControl => Left-click (hold down Control/Shift to Control-Click or Shift-Click).
SendEvent {Blind}{LButton down}
KeyWait RCtrl ; Prevents keyboard auto-repeat from repeating the mouse click.
SendEvent {Blind}{LButton up}
return

LAlt::RButton ; LeftWin + AppsKey => Right-click
SendEvent {Blind}{RButton down}
KeyWait AppsKey ; Prevents keyboard auto-repeat from repeating the mouse click.
SendEvent {Blind}{RButton up}
return

En este ejemplo hemos configurado el joystick de manera que mueva el raton y y las teclas control izquierdo para que sea el boton izquierdo del rato y el ALT izquierdo para que sea el boton derecho del raton.

El modulo del scummvm quedaria asi:
QUOTE
;----------------------------------------------------------------------------
; Scummvm
; scummvm.exe
; by chillinwater
; 1.0
;
; Info:
;----------------------------------------------------------------------------

Run, "C:\hyperspin1.0\Pantallas de Espera\ScummVM\hypersplash.exe"
sleep, 5000
Gui +AlwaysOnTop -Caption +ToolWindow
Gui, color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
Run, %emupath%%executable%
Runwait, %­rompath%%­romname%%­romextension%

up::MouseMove, 0, -10, 0, R ; Win+UpArrow hotkey => Move cursor upward
Down::MouseMove, 0, 10, 0, R ; Win+DownArrow => Move cursor downward
Left::MouseMove, -10, 0, 0, R ; Win+LeftArrow => Move cursor to the left
Right::MouseMove, 10, 0, 0, R ; Win+RightArrow => Move cursor to the right

LCtrl::LButton ; LeftWin + RightControl => Left-click (hold down Control/Shift to Control-Click or Shift-Click).
SendEvent {Blind}{LButton down}
KeyWait RCtrl ; Prevents keyboard auto-repeat from repeating the mouse click.
SendEvent {Blind}{LButton up}
return

LAlt::RButton ; LeftWin + AppsKey => Right-click
SendEvent {Blind}{RButton down}
KeyWait AppsKey ; Prevents keyboard auto-repeat from repeating the mouse click.
SendEvent {Blind}{RButton up}
return


;Required
CloseProcess:
Process, Close, hypersplash.exe
WinActivate, HyperSpin
ExitApp
;Doesnt have to do anything but make sure to have the line before and after this line.
return

Y aqui dejo el hilo del foro donde se a solucionado este tema jeje #entry349244881

Saludos y decir otra vez que ha sido gracias a Lasthome.
 
Top
20 replies since 4/3/2012, 11:58   26020 views
  Share