LilyPad: Difference between revisions

Jump to navigation Jump to search
228 bytes added ,  8 October 2015
no edit summary
mNo edit summary
No edit summary
Line 16: Line 16:
"Flip" inverts a button or axis, making down up and up down. Cases where you'll want to use it are very rare. Sensitivity sets how hard an axis or button is pressed. Note that setting the sensitivity of PC button bindings only really has an effect for PS2 analog sticks or when playing a game with full DS2 pressure sensitivity support. I'm not sure how the actual dual shock works, but I currently only say a key is down when dual shock pressure is at 50% of maximum or more. What the default sensitivity value of "1.000" means depends on the device itself. The default is high enough that relative axes (which are primarily used by mice) are generally either considered fully up or down. For absolute axes (and force feedback devices), which are used by most game devices, a value of 1.0 should map the device's extreme values to the extreme values of a stick/pad.
"Flip" inverts a button or axis, making down up and up down. Cases where you'll want to use it are very rare. Sensitivity sets how hard an axis or button is pressed. Note that setting the sensitivity of PC button bindings only really has an effect for PS2 analog sticks or when playing a game with full DS2 pressure sensitivity support. I'm not sure how the actual dual shock works, but I currently only say a key is down when dual shock pressure is at 50% of maximum or more. What the default sensitivity value of "1.000" means depends on the device itself. The default is high enough that relative axes (which are primarily used by mice) are generally either considered fully up or down. For absolute axes (and force feedback devices), which are used by most game devices, a value of 1.0 should map the device's extreme values to the extreme values of a stick/pad.


"Turbo" presses/unpresses the button every other poll.
"Turbo" presses/depresses the button every other poll.


For all 3 vertical axes, down is positive and up is negative. This agrees with windows screen coordinates, and mice and joysticks generally work as expected if you bind vertical to vertical. For some other axis types, however, this may result in flipping up/down. In particular, if you bind a mouse wheel to a vertical axis, you'll need to flip the axis for mouse wheel down to act like down.
For all 3 vertical axes, down is positive and up is negative. This agrees with windows screen coordinates, and mice and joysticks generally work as expected if you bind vertical to vertical. For some other axis types, however, this may result in flipping up/down. In particular, if you bind a mouse wheel to a vertical axis, you'll need to flip the axis for mouse wheel down to act like down.


To configure force feedback, select the device you want to bind and then press which dualshock2 motor you want to bind it to. When the effect is selected, you can enable/disable individual motors for the effect. First two motors are automatically enabled for any effect, only up to 6 motors will be displayed. Note that for some devices, to get the second motor to work, the first motor must be enabled as well, even if it has 0 force. For other devices, to get some motors to work, previous motors much be disabled for that force. For yet other devices, you have to change the effect to trigger other motors. The slider sets the force used when an effect is triggered. The default value of 1.0 maps the maximum PS2 vibration to the maximum DirectInput/XInput vibration. Flip flips the direction of the effect axis. This most likely will have no noticeable effect. Once a force feedback axis is configured, you can click "Test" and the axis will then vibrate at the maximum possible value a game can set it to. Note that the small motor is only either off or on at max, while the big motor's vibration can be set from 0 to 255.
To configure force feedback, select the device you want to bind and then press which DualShock 2 motor you want to bind it to. When the effect is selected, you can enable/disable individual motors for the effect. First two motors are automatically enabled for any effect, only up to 6 motors will be displayed. Note that for some devices, to get the second motor to work, the first motor must be enabled as well, even if it has 0 force. For other devices, to get some motors to work, previous motors much be disabled for that force. For yet other devices, you have to change the effect to trigger other motors. The slider sets the force used when an effect is triggered. The default value of 1.0 maps the maximum PS2 vibration to the maximum DirectInput/XInput vibration. Flip flips the direction of the effect axis. This most likely will have no noticeable effect. Once a force feedback axis is configured, you can click "Test" and the axis will then vibrate at the maximum possible value a game can set it to. Note that the small motor is only either off or on at max, while the big motor's vibration can be set from 0 to 255.


===Special button bindings===
===Special button bindings===
Line 44: Line 44:
Pad mode pulldown sets whether a pad is disabled, a DS2, or acts like a guitar. Disabled pads send no input to PCSX2, have no config tabs (though their bindings are not cleared), and, with newer versions of PCSX2, the emulated PS2 acts as if the pads are actually unplugged (with older versions of PCSX2, there's no way for the pad plugin to do this).
Pad mode pulldown sets whether a pad is disabled, a DS2, or acts like a guitar. Disabled pads send no input to PCSX2, have no config tabs (though their bindings are not cleared), and, with newer versions of PCSX2, the emulated PS2 acts as if the pads are actually unplugged (with older versions of PCSX2, there's no way for the pad plugin to do this).


"Use analog mode whenever possible" will switch a pad from digital mode to analog mode whever a pad is set to digital mode, if the pad's mode is not locked. This is handy for the lazy, who don't want to have to hit the analog button whenever they start the emulator for games that support but do not automatically enable analog mode, and for loading states in games that get upset when you load a state before the pad is initialized. May cause issues with some games, especially very old ones, and when using older versions of PCSX2.
"Use analog mode whenever possible" will switch a pad from digital mode to analog mode whenever a pad is set to digital mode, if the pad's mode is not locked. This is handy for the lazy, who don't want to have to hit the analog button whenever they start the emulator for games that support but do not automatically enable analog mode, and for loading states in games that get upset when you load a state before the pad is initialized. May cause issues with some games, especially very old ones, and when using older versions of PCSX2.


"Refresh" will update the list of DirectInput devices. As I autodetect when new devices are plugged in, this option generally shouldn't be useful.
"Refresh" will update the list of DirectInput devices. As I auto-detect when new devices are plugged in, this option generally shouldn't be useful.


Double clicking a device or selecting "Test Device" will display a continuously updated list of the state of all objects on the selected device. Devices not currently enabled in the API selection list at the top are not displayed.
Double clicking a device or selecting "Test Device" will display a continuously updated list of the state of all objects on the selected device. Devices not currently enabled in the API selection list at the top are not displayed.
Line 58: Line 58:




====Hacks====
The options under "Hacks" are a bit hackish, and may not work with all graphics plugins or emulators (PSX emulators, in particular). I do almost all my testing with ZeroGS. That having been said, the worst that can result from using them is an emulator crash (not a system crash) when starting/stopping the emulator. Shouldn't cause any issues in game, and crashing behavior should be consistent (either always does or never does).
The options under "Hacks" are a bit hackish, and may not work with all graphics plugins or emulators (PSX emulators, in particular). I do almost all my testing with ZeroGS. That having been said, the worst that can result from using them is an emulator crash (not a system crash) when starting/stopping the emulator. Shouldn't cause any issues in game, and crashing behavior should be consistent (either always does or never does).


Line 77: Line 78:
Some PSX emulators (At least PSXeven) require pad plugins to be named pad*.dll. To use LilyPad with those, you'll have to rename the dll. The most popular two psx emulators don't use pad plugins and LilyPad is really aimed at use with PCSX2 anyways so the dll will not be renamed, to minimize confusion.
Some PSX emulators (At least PSXeven) require pad plugins to be named pad*.dll. To use LilyPad with those, you'll have to rename the dll. The most popular two psx emulators don't use pad plugins and LilyPad is really aimed at use with PCSX2 anyways so the dll will not be renamed, to minimize confusion.


Guitars
===Guitars===
To make a pad work as a guitar in Guitar Hero or Rock Band, select the Guitar from the dropdown for that pad and rebind the controls. Note that you must start the game with the checkbox selected. Toggling it later won't work.
To make a pad work as a guitar in Guitar Hero or Rock Band, select the Guitar from the dropdown for that pad and rebind the controls. Note that you must start the game with the checkbox selected. Toggling it later won't work.


Guitar Hero 2 has some sort of additional check to prevent the use of 3rd party guitars. I don't know how to convince it I'm a real guitar. As a workaround, there's a GH2 hack option in the hacks section. Check it and the pad's guitar setting to play GH2 with a guitar. You'll have to press the strumbar and the frets at the same time to navigate through menus. This is a result of the GH2 hack causing the guitar to identify itself as a pad, but behave more like a guitar in-game. There's no reasonable workaround I can do for this, unless I learn how to convince GH2 I'm really a guitar. A PCSX2 patch file might be possible, however.
Guitar Hero 2 has some sort of additional check to prevent the use of 3rd party guitars. I don't know how to convince it I'm a real guitar. As a workaround, there's a GH2 hack option in the hacks section. Check it and the pad's guitar setting to play GH2 with a guitar. You'll have to press the strumbar and the frets at the same time to navigate through menus. This is a result of the GH2 hack causing the guitar to identify itself as a pad, but behave more like a guitar in-game. There's no reasonable workaround I can do for this, unless I learn how to convince GH2 I'm really a guitar. A PCSX2 patch file might be possible, however.


Particular thanks to cottonvibes for info on the PS2 guitar, and to gabest for finding a bug.
Particular thanks to [[PCSX2#Development_and_support_team|cottonvibes]] for info on the PS2 guitar, and to [[PCSX2#Development_and_support_team|gabest]] for finding a bug.


Setting up a DualShock 3 Direct Connection
===Setting up a DualShock 3 Direct Connection===
You must have libusb installed for this to work. See http://forums.pcsx2.net/thread-7582.html for more details. sixaxis64.exe is not needed, but the libusb drivers are required. Not sure if the "Add hardware wizard" step is needed or not, I suggest you do it, just in case. Note that those are 64-bit instructions. It's simpler to install and configure on 32-bit OSes. You must press the PS button while a game is running or binding controls to initialize the DS3. Once it's been initialized once, a single light should turn on (Pad 1 light if you only have one plugged in), and you shouldn't have to do it again until you unplug the controller or reboot (Even if you restart PCSX2). It may take several seconds to start working. When you unplug it from the pc, all 4 lights will blink for a while, and it may rumble once or twice. Not sure how to prevent the rumbling.
You must have libusb installed for this to work. See http://forums.pcsx2.net/thread-7582.html for more details. sixaxis64.exe is not needed, but the libusb drivers are required. Not sure if the "Add hardware wizard" step is needed or not, I suggest you do it, just in case. Note that those are 64-bit instructions. It's simpler to install and configure on 32-bit OSes. You must press the PS button while a game is running or binding controls to initialize the DS3. Once it's been initialized once, a single light should turn on (Pad 1 light if you only have one plugged in), and you shouldn't have to do it again until you unplug the controller or reboot (Even if you restart PCSX2). It may take several seconds to start working. When you unplug it from the pc, all 4 lights will blink for a while, and it may rumble once or twice. Not sure how to prevent the rumbling.


Line 109: Line 110:


===Pressure-sensitive buttons===
===Pressure-sensitive buttons===
*Most 3rd-party controllers are good enough for LilyPad; however, a select few games rely on pressure sensitive buttons, a feature '''not''' included on the vast majority of gamepads. Your average Logitech or Saitek pads do not support this feature - this is a different from thing from pressure sensitive ''triggers''.
*Most 3rd-party controllers are good enough for LilyPad; however, a select few games rely on pressure-sensitive buttons, a feature '''not''' included on the vast majority of gamepads. Your average Logitech or Saitek pads do not support this feature - this is a different thing from pressure-sensitive ''triggers''.
**As of February 2011, the only confirmed gamepad to support actual pressure sensitive buttons working with LilyPad is the official Sony PS3 Dualshock 3, which requires a separate .dll download to get working on a PC. (If you have made this work please post instructions here, thanks.)
**As of February 2011, the only confirmed gamepad to support actual pressure sensitive buttons working with LilyPad is the official Sony DualShock 3, which requires a separate .dll download to get working on a PC. (If you have made this work please post instructions here, thanks.) <!-- The DualShock 2 supports pressure-sensitive buttons as well: http://www.ign.com/articles/2001/09/27/dual-shock-2-review -->
*Many people confuse pressure sensitivity, so here is a test for button pressure sensitivity:
*Many people confuse pressure sensitivity, so here is a test for button pressure sensitivity:
**Open the LilyPad plugin settings by going to the PCSX2 menu and selecting '''Config''' --> '''Controllers (PAD)''' --> '''Plugin Settings...'''. At the LilyPad plugin popup, select your gamepad from the list of detected controllers in the "Device Diagnostics" box in the lower left then click the "Test Device" button. (This list of controllers will also likely include your keyboard and mouse.)
**Open the LilyPad plugin settings by going to the PCSX2 menu and selecting '''Config''' --> '''Controllers (PAD)''' --> '''Plugin Settings...'''. At the LilyPad plugin popup, select your gamepad from the list of detected controllers in the "Device Diagnostics" box in the lower left then click the "Test Device" button. (This list of controllers will also likely include your keyboard and mouse.)
ninja
485

edits

Navigation menu