Main | Screenshots | Downloads | Manual | FAQ | GET Gamepads!
|
ManualInstallationGo to the downloads page and install WifiPad Server on your PC. The WifiPad client for the iPhone/iPod Touch may be obtained from the App Store. Firewall configurationWifiPad-server requires port TCP/UDP 8989 to be available over the local network. It must also alow outgoing port UDP 8990. Server configurationStarting WifiPad serverMake sure that the computer that is running WifiPad server is connected to the network. You can find information about troubleshooting your network connection here: Windows: http://support.microsoft.com/kb/308007 Windows: Start WifiPad Server by clicking the Start menu and choosing Programs, WifiPad, and WifiPad Server. Mac: Double click "WifiPadServer," in your Applications. WifiPad Server InterfaceThis is the main interface of the WifiPad server. 1. Optional. You can specify the server name here. The server name appears on the WifiPad client when queried. 2. This drop-down box contains a list of saved key configuration. A configuration is a set of defined keys for a gamepad. For example, you can create a configuration called "Game X Player 1" with key bindings for player 1 for a specific game. A default configuration is provided for convenience, but you will be required to create a configuration in order to change the keys. 3. The Gamepad drop-down box lets you select a gamepad. WifiPad allows different gamepad themes to be installed. Go here to find more gamepads. 4. This adjusts the speed of the cursor for mouse operations. 5. The Show Keys and Show Tap Zone checkboxes allow you to see the keys on the gamepad configuration view as well as the tap zones. 6. This is preview of the gamepad. By clicking on a tap zone of a button, you can change the key assignment. You must select a configuration in the Configuration drop down box in order to change the keys. Remember to click "Save" or your changes will not be applied. 7. This is a text field which you can use to test key presses from the client. Assigning keysIn order to change keys, a configuration must be created. Click on the "New..." button next to the configuration drop-down box. Enter a configuration name and click OK. Once you have created a configuration, you can start assigning keys to the gamepad. Select the configuration that was just created from the drop-down box and choose the gamepad you wish to configure. By clicking on one of the tap zones of the button a window will pop up, allowing you to change the key. Enter the key assignment for the button. You can able to assign up to three unique key strokes for a button. This is necessary to simulate diagonals (such as buttons UP+RIGHT at the same time). Drop down boxes are available to select special keys, such as mouse. Use the "Accept" button to confirm changes if you use special keys. Repeat the above process for the other buttons. Once you're done, don't forget to click "Save". Creating custom gamepad** New ** WifiPad Creator is a helper utility for creating gamepads. WifiPad provides the ability to install and use custom designed gamepads. A gamepad consists of a description file identifying the gamepad information such as button coordinates, a main image for the gamepad and a set of additional images which represent the button pressed state. The format is very strict, any mistakes will not be tolerated. Creating a gamepad description fileThe gamepad description file consists of a number of Key: Value pairs specified individually on each line. To begin, create a text file and name it "gamepad.txt". Start off by entering: Tag: GP10 as the first line. This line is required for the server to identify that the gamepad is a WifiPad gamepad file rather than some random text file. Next, enter a name for the gamepad. Tag: GP10 This will give your gamepad a title. Next, we'll need a UUID for the gamepad. The UUID is a unique identifier which uniquely identifies the gamepad. A UUID maybe obtained with the 'uuidgen' program available on the Mac OS X or Linux platforms. You can also look on Google for free UUID generators.
The UUID may be entered into the UUID line. Tag: GP10 The gamepad will require a background image. This is the image of the gamepad. The image should be 24-bit RGB, 480x320 pixels and saved in PNG format. Use the Image: tag to specify the filename of the image. Notice: The image filename must be less than or equal to 15 characters long and not contain any spaces! Tag: GP10 The rest of the gamepad consists of Button: entries. Each button is defined by a hot spot (the rectangle which triggers the button), an optional overlay image to display when the button is pressed, and the default key the button is assigned to. A button entry will look like this: Button: 0,0,20,20 ; btndown.png,0,0 ; UP The format of each button line is as follows: Button: x1,y1,x2,y2 ; down.png,imageX,imageY ; Button1,Button2,Button3 (x1,y1) refers to the top-left corner of the hot spot rectangle while (x2,y2) refers to the bottom right. The coordinates (x1,y1), (x2,y2) must be in the range of (0,0) -> (479,319). The button down image specified by down.png in the above example must be a 24-bit PNG image and is displayed at the coordinates specified by (imageX,imageY). Note that the filename of the button down image must be less than or equal to 15 characters and not contain any spaces. Button1, Button2 and Button3 refer to the default button presses assigned to this key. Up to three buttons are simulated simultaneously. It is a good idea to stick use only A-Z, LEFT, RIGHT, UP, DOWN and RETURN for the keys as they are portable across platforms. The following is an example of gamepad.txt. Tag: GP10 Trackpad (v1.1+)WifiPad 1.1+ supports a trackpad for basic mouse support. In order to create gamepads with trackpad support, one start the gamepad.txt with Tag: GP11 instead of GP10. Tag: GP11 The trackpad definition follows the same format as Button. Trackpad: 0,0,479,319 ; ; LBUTTON can turn the entire screen space into a wireless mouse pad. Creating imagesBe conservative. The larger the image, the more memory it will consume on the device. Keep all images to a minimum size. Use PNGCrush to reduce the size of PNG's to a minimum. Creating the .gamepad fileA .gamepad file is an archive of the gamepad.txt and png images. The standard AR format is used and thus, you can use the 'ar' tool on Mac OS X or Linux. A copy of AR for windows may be available in the MinGW distribution. To make the gamepad, use the commandline: (MacOSX) ar -Tr mygamepad.gamepad gamepad.txt image.png image1.png image2.png ... Others: ar -r mygamepad.gamepad gamepad.txt image.png image1.png image2.png ... Notice that only historical ar format works. That means each filename can be at maximum 15 characters long. WifiPad does not understand long filenames! Gamepad validationIf you find that you are getting the "Invalid gamepad error" or the gamepad is not showing up in the gamepad list, it is probably because there is an error in the making of the gamepad. Here is a checklist of things to look out for. The following must be true for a valid gamepad:
|