;
; MEKA - Inputs Sources definition file
; This file is automatically updated and rewritten when quitting
; So any comment you might manually add will be deleted
; Else, feel free to edit this file manually if you feel the need to
;

;----------------------------------------------------------------------------
; Select joypad/joystick driver here:
;
joy_driver          = auto
;
; Available joypad/joystick drivers:
; none, auto, 2b, 4b, 6b, 8b, dual, sidewinder, fspro, wingex, wingwar,
; gamepadpro, grip, grip4.
;
; If you have an adapter for console kind of joypad/joystick:
; db9lpt1 to db9ltp3, sneslpt1 to sneslpt3, psxlpt1 to psxlpt3,
; n64lpt1 to n64lpt3, ifsegaisa, ifsegapci, ifsegapci2
;
; A DB-9 adapter allow you to plug real Master System pads. Be sure to check
; out the TECH.TXT file for informations about such adapter. Also check
; http://www.ziplabel.com/dpadpro for more about this and other adapters.
;----------------------------------------------------------------------------

;----------------------------------------------------------------------------
; Configure mouse speed here:
;
mouse_speed_x        = 2
mouse_speed_y        = 2
;
; The higher the value is, the slower the axis will be.
; 2 is the default for both axis. Use 1 for a fastest mouse movement.
;----------------------------------------------------------------------------

;----------------------------------------------------------------------------
; Template for creating new input sources:
;
; [Name]
; type = keyboard (digital) | joypad (digital) | mouse (analog)
;   Select the type of input device
; enabled = yes | no
;   Set to no in order to tell Meka to ignore input from this device
; player = 1 | 2
;   Player on which inputs are applicated
; connection = <number>
;   Joypad only. Select connection to use: 1 = first pad, 2 = second pad..
; emulate_digital
;   Mouse only. Enable support for digital devices (such as SMS joypad),
;   to play games with the mouse. Recommended with shooters mainly.
; digital_falloff (between 0 and 1, default being 0.8)
;   Mouse only, when digital emulation is enabled. Reduce to increase
;   precision, but most games will be harder to play.
;----------------------------------------------------------------------------

[Keyboard 1]
type                = keyboard
enabled             = yes
player              = 1
player_up           = key Up
player_down         = key Down
player_left         = key Left
player_right        = key Right
player_button1      = key Left Control
player_button2      = key Alt
player_start_pause  = key Space
player_reset        = key Backspace

[Keyboard 2]
type                = keyboard
enabled             = yes
player              = 2
player_up           = key W
player_down         = key S
player_left         = key A
player_right        = key D
player_button1      = key Q
player_button2      = key E

[Joypad 1]
type                = joypad
connection          = 1
enabled             = no
player              = 1
player_up           = joy stick 0 axis 1 dir 0
player_down         = joy stick 0 axis 1 dir 1
player_left         = joy stick 0 axis 0 dir 0
player_right        = joy stick 0 axis 0 dir 1
player_button1      = joy_button 1
player_button2      = joy_button 0
player_start_pause  = joy_button 2

[Joypad 2]
type                = joypad
connection          = 2
enabled             = no
player              = 2
player_up           = joy stick 0 axis 1 dir 0
player_down         = joy stick 0 axis 1 dir 1
player_left         = joy stick 0 axis 0 dir 0
player_right        = joy stick 0 axis 0 dir 1
player_button1      = joy_button 1
player_button2      = joy_button 0
player_start_pause  = joy_button 2

[Mouse 1]
type                = mouse
enabled             = yes
player              = 1
player_x_axis       = mouse_axis 0
player_y_axis       = mouse_axis 1
player_button1      = mouse_button 0
player_button2      = mouse_button 1
emulate_digital     = no
digital_falloff     = 0.80

[Mouse 2]
type                = mouse
enabled             = no
player              = 2
player_x_axis       = mouse_axis 0
player_y_axis       = mouse_axis 1
player_button1      = mouse_button 0
player_button2      = mouse_button 1
emulate_digital     = no
digital_falloff     = 0.80

;----------------------------------------------------------------------------
