


In this case you just move the axis to the left and right and then up and down. This is also useful for configuring the field of view axis. ( Binding joystick events is discussed further in the next section.) You can then bind that button from within the game by typing: This will help you determine which button to use when binding actions to the joystick, as well as which axis to use for movement and field of view control.įor example, if you want to use a certain button to fire your gun, press that button and you will see something like this displayed in the console: When joyshowevents is set to 1, all joystick events will be displayed in the console. This property is meant to be used when configuring your game controller.

Sauerbraten cube 2 how to#
( See the response below titled "Joystick Sensitivity Script" for an example of how to do this.) Just type /joysensitivity n at the console to bump the sensitivity up or down, or better yet, create an alias and map this to a couple of your joystick buttons. Remember, these values can be set from within the game. The range for this setting is 1-10 where 1 is the least sensitive and 10 is the most. On certain maps where you're getting really low fps you might need to bump this up a bit. This is the property you'll probably end up tweaking the most. If set to 30 you'll have to push it practically to the edge. If set to 1 you basically just have to breath hard on the stick and it will trigger the event. This property sets up the minimum amount of movement that is required to trigger an event when binding axis movements to actions. If set to 1 (inverted) the control works like a flight simulator: pull back on the stick to nose up, push forward to nose down. If set to 0 you will look in the direction you press on the stick. Specifies how the stick controls your field of view.

If you wanted to use the right one (recommended) the settings would be: So, for example, on my controller, which is very similar to the one pictured above, if I wanted the use the left stick the settings would be:ĭepending on how your controller numbers the axes. Each stick has a horizontal and a vertical axis. This setting specifies which stick should control the field of view (what the mouse does for you now). I added the following variables to the config.cfg to configure the joystick: This allows joystick events to be "bound" to actions like you would any other keyboard or mouse event.
Sauerbraten cube 2 Pc#
So if you've got a laptop with support for TV-output and a pc game controller with at least one stick (preferably analog) on it you might give this a shot.īasically, I took the approach that I would intercept joystick events and translate them into sauerbraten keypress events. Personally, I sometimes get tired of being hunched over the computer and find it relaxing to sit back on the couch and play console-style. I know most serious PC gamers would never dream of giving up the mouse. Just for kicks I thought I would see if I could set up game controller support for sauerbraten.
Sauerbraten cube 2 mod#
This mod now contains executables for both Sauerbraten and Cube. Also, verified that the mod works with non-analog sticks. Added menu-driven joystick configuration. Fixed typo in keymap.cfg that was causing binding errors. Updated to be compatible with the 04/26/06 build of Sauerbraten.
