project-navigation
Personal tools

Author Topic: Mouse is too sensitive  (Read 29442 times)

Offline Omega_eol

  • Cannon Fodder
  • **
  • Posts: 1
    • View Profile
Mouse is too sensitive
« on: January 27, 2012, 02:15:09 am »
Hello, All

First, I must say: I am really enjoying the game. Great work!

A month ago I got the game through git repository and install it on Ubuntu 10.04. Everything was perfect: speed, sound, graphics. Recently, I upgraded to Ubuntu 11.04 (I had to recompile the game and install again). Now when I am running the game mouse cursor became super sensitive, its just impossible to play. Its normal if you turn off the full-screen mode though.

Is there a way to change mouse sensitivity? I could not find in the game UI.

This might help:
Quote
---- endianness initialization -----
found little endian system
 
---- filesystem initialization -----
Adding game dir: /usr/local/games/ufoai/base
Added packfile /usr/local/games/ufoai/base/0base.pk3 (15 files)
Added packfile /usr/local/games/ufoai/base/0maps.pk3 (708 files)
Added packfile /usr/local/games/ufoai/base/0materials.pk3 (54 files)
Added packfile /usr/local/games/ufoai/base/0media.pk3 (11 files)
Added packfile /usr/local/games/ufoai/base/0models.pk3 (1926 files)
Added packfile /usr/local/games/ufoai/base/0music.pk3 (64 files)
Added packfile /usr/local/games/ufoai/base/0pics.pk3 (1195 files)
Added packfile /usr/local/games/ufoai/base/0shaders.pk3 (28 files)
Added packfile /usr/local/games/ufoai/base/0snd.pk3 (356 files)
Added packfile /usr/local/games/ufoai/base/0textures.pk3 (2626 files)
Added packfile /usr/local/games/ufoai/base/0ufos.pk3 (105 files)
Added packfile /usr/local/games/ufoai/base/0videos.pk3 (1 files)
Adding game dir: ./base
Added packfile ./base/0base.pk3 (15 files)
Added packfile ./base/0maps.pk3 (708 files)
Added packfile ./base/0materials.pk3 (54 files)
Added packfile ./base/0media.pk3 (11 files)
Added packfile ./base/0models.pk3 (1926 files)
Added packfile ./base/0music.pk3 (64 files)
Added packfile ./base/0pics.pk3 (1195 files)
Added packfile ./base/0shaders.pk3 (28 files)
Added packfile ./base/0snd.pk3 (356 files)
Added packfile ./base/0textures.pk3 (2626 files)
Added packfile ./base/0ufos.pk3 (105 files)
Added packfile ./base/0videos.pk3 (1 files)
Adding game dir: /home/omega/.ufoai/2.4-dev/base
using /home/omega/.ufoai/2.4-dev/base for writing
executing filesystem.cfg
executing default.cfg
executing config.cfg
 
----- network initialization -------
libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18 initialized.
 
------ server initialization -------
added 8 maps to the mapcycle
 
----- console initialization -------
Console initialized.
 
------- video initialization -------
SDL version: 1.2.14
I: desktop depth: 32bpp
I: video memory: 0
I: Available resolutions: 1280x800 1024x768 800x600 640x480 (4)
I: video driver: x11
I: setting mode 1
I: set multisample buffers to 0
I: set swap control to 0
I: 1024x768 (fullscreen: yes)
I: got 8 bits of stencil
I: got 24 bits of depth buffer
I: got double buffer
I: got 8 bits for red
I: got 8 bits for green
I: got 8 bits for blue
I: got 0 bits for alpha
I: got 0 multisample buffers
GL_VENDOR: Tungsten Graphics, Inc
GL_RENDERER: Mesa DRI Intel(R) 965GM GEM 20100330 DEVELOPMENT 
GL_VERSION: 2.1 Mesa 7.10.2
GL_EXTENSIONS: GL_ARB_copy_buffer GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_object GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_map_buffer_range GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_provoking_vertex GL_ARB_seamless_cube_map GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_shadow GL_ARB_sync GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_transpose_matrix GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_texture GL_EXT_draw_buffers2 GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_object GL_EXT_gpu_program_parameters GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_shader_objects GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture3D GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_texture GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_EXT_vertex_array GL_OES_EGL_image GL_OES_read_format GL_3DFX_texture_compression_FXT1 GL_APPLE_client_storage GL_APPLE_object_purgeable GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ATI_blend_equation_separate GL_ATI_envmap_bumpmap GL_ATI_separate_stencil GL_ATI_texture_env_combine3 GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_MESA_pack_invert GL_MESA_texture_signed_rgba GL_MESA_window_pos GL_MESA_ycbcr_texture GL_NV_blend_square GL_NV_depth_clamp GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_program1_1 GL_NV_vertex_program GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays 
Activate texture compression for Intel chips - see cvar r_intel_hack
Disabling shaders for Intel chips - see cvar r_intel_hack
found GL_ARB_multitexture
found GL_ARB_texture_compression
using GL_ARB_texture_compression
found GL_ARB_texture_non_power_of_two
using GL_ARB_texture_non_power_of_two
found GL_EXT_texture_filter_anisotropic
found GL_EXT_texture_lod_bias
found GL_ARB_vertex_buffer_object
using GL_ARB_vertex_buffer_object
max vertex buffer size: 3000
found GL_ARB_fragment_shader
found GL_ARB_shading_language_100
GLSL version guaranteed to be supported by OpenGL implementation postfixed by vender supplied info: 1.20
found GL_###_framebuffer_object
using GL_ARB_framebuffer_object
max draw buffers: 8
max render buffer size: 8192
max color attachments: 8
found GL_###_draw_buffers
using GL_ARB_draw_buffers
max supported vertex texture units: 0
max supported lights: 8
max texture units: 8
max texture coords: 8
max vertex attributes: 16
max varying floats: 64
max fragment uniform components: 4096
max vertex uniform components: 4096
max texture size: detected 4096
...but using 1024 as requested
Using low resolution globe textures as requested.
disabled shaders because they failed to compile
SDL_image version 1.2.10
SDL_ttf version 2.0.9 - we need at least 2.0.7
 
------- sound initialization -------
SDL_mixer version: 1.2.8
... requested audio rate: 44100
... driver: 'pulse'
... audio rate: 44100
... audio channels: 2
 
------- input initialization -------
0 possible joysticks
no joystick found.
Allocate 3 megabytes for the ui hunk
 
----------- parse scripts ----------
54 script files
...  0: extension
...  1: headgear
...  2: right
...  3: left
...  4: backpack
...  5: belt
...  6: holster
...  7: armour
...  8: floor
...  9: equip
51 ui script files
Shared Client/Server Info loaded
...109 items parsed
... 28 damage types parsed
... 32 equipment definitions parsed
... 10 inventory definitions parsed
... 22 team definitions parsed
executing keys.cfg
Warning: Empty description for UI keybinding: hudinv.bt_exit (i)
Warning: Empty description for UI keybinding: hud_alt.showinventory (i)
Warning: Empty description for UI keybinding: hud_mini.showinventory (i)
Warning: Empty description for UI keybinding: ahudinv.hideinventory (i)
Warning: Empty description for UI keybinding: hud_nohud.showinventory (i)
Warning: Empty description for UI keybinding: radarwindow.closeradar (HOME)
Warning: Empty description for UI keybinding: radarwindow.closeradar (KP_HOME)
Warning: Empty description for UI keybinding: radarwindow.closeradar (h)
music change to van_theme (from PsymongN3)
executing autoexec.cfg
"version" is "UFO: Alien Invasion 2.4-dev AMD64 Jan 26 2012 Linux DEBUG"
150 static models loaded
CL_LanguageInit: language settings are stored in configuration: en
...using language: en_ZW.utf8
SDL_ttf version 2.0.9 - we need at least 2.0.7
...registering 13 fonts
----------- game modes -------------
added _Multiplayer
added _Campaign
added _Skirmish
added 3 game modes
====== UFO Initialized ======
=============================
Switch grab input off
Wrote config.cfg.
Wrote keys.cfg
recursive shutdown

« Last Edit: January 27, 2012, 02:39:04 am by Omega_eol »

Offline runephilosof

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Re: Mouse is too sensitive
« Reply #1 on: March 14, 2015, 11:41:33 pm »
As I wrote in http://ufoai.org/forum/index.php/topic,8645.0.html

You will want to start the games with
Code: [Select]
SDL_VIDEO_X11_DGAMOUSE=0 SDL_VIDEO_X11_MOUSEACCEL=2/1/0 "command to start the game"
So I have made a script for starting ufoai containing:
Code: [Select]
#!/bin/bash
SDL_VIDEO_X11_DGAMOUSE=0 SDL_VIDEO_X11_MOUSEACCEL=2/1/0 /home/rp/repos/ufoai/ufo