Sponsored Content
Full Discussion: Mouse Problems
Operating Systems Linux Mouse Problems Post 57406 by locustfurnace on Wednesday 27th of October 2004 05:24:10 AM
Old 10-27-2004
Try running mouseconfig, if it is on your system, to setup gpm, the Linux mouse server.
Then configure xorg.conf as necessary.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mouse wheel...

Hello. I've got round to installing RedHat 7.1, and i have this slight problem. I'm not able to use my mouse wheel. Is this just not possible in RedHat or is there a way to configure my mouse so i can use my mouse wheel. Thank you. (1 Reply)
Discussion started by: Mr-Pixie
1 Replies

2. UNIX for Dummies Questions & Answers

Mouse settings

How do I change the mouse pointer speed settings in Unix. I know in Windows there is the option to change the pointer speed. (3 Replies)
Discussion started by: chyzm
3 Replies

3. BSD

BSD mouse

Hey guys am runing FreeBSD 5.3 on my laptop, i know i have done it before but i cannot for the life of me get my wireless microsoft mouse working in kde. is is connected threw usb. I ran a dmesg and it see the mouse in uhid0. let me know if ya guys could give me a hand in this thanks. (1 Reply)
Discussion started by: THCue
1 Replies

4. UNIX for Advanced & Expert Users

Indigo mouse

A few years ago i found i the Net a "homework" about how to convert ps2 mouse to Indigo mouse. But i do not save it. Anybody helps me? There are about 10 Indigo mice in all of my country. Thanks in advance (2 Replies)
Discussion started by: mikidimov
2 Replies

5. Shell Programming and Scripting

Building a better mouse trap, or How many lines of code does it take to trap a mouse?

Hello all, I'm hoping to get a little insight from some of the wily veterans amongst you. I've written a script to check for new outgoing files to our vendors located on our ssl server. It seems to be working ok, but the final question here, will be one of logic, and/or a better way to... (4 Replies)
Discussion started by: mph
4 Replies

6. HP-UX

reset mouse

I have a Belkin KVM switcher, but when I switch from Unix to Windows, then back to Unix, the mouse stops working is there any way to reset the mouse without restarting the workstation? thanks! (0 Replies)
Discussion started by: xRonin
0 Replies

7. UNIX for Dummies Questions & Answers

Changing middle mouse button for pasting to right mouse button in cygwin rxvt

Hi, I'm using rxvt in Cygwin and I'm wondering how to change my mouse bindings from the middle button for pasting to the right button. The main reason why I want to do this is because my laptop doesn't have a middle mouse button. Thanks for any help! (2 Replies)
Discussion started by: sayeo
2 Replies

8. What is on Your Mind?

Keyboard vs mouse

Which Input device do you use the most ? for me... keyboard ofcourse !! (56 Replies)
Discussion started by: vpraveen84
56 Replies
pods::SDL::Cursor(3pm)					User Contributed Perl Documentation				    pods::SDL::Cursor(3pm)

NAME
SDL::Cursor - Mouse cursor structure CATEGORY
Core, Mouse, Structure SYNOPSIS
my $cursor = SDL::Cursor->new( @data, @mask, $width, $height, $hotspot_left, $hotspot_top ); SDL::Mouse::set_cursor($cursor); DESCRIPTION
The "SDL::Cursor" module handles mouse cursors, and allows the developer to use custom-made cursors. Note that cursors can only be in black and white. METHODS
new my $cursor = SDL::Cursor->new( @data, @mask, $width, $height, $hotspot_left, $hotspot_top ); Create a cursor using the specified data and mask (in MSB format). The cursor is created in black and white according to the following: Data / Mask Resulting pixel on screen 0 / 1 White 1 / 1 Black 0 / 0 Transparent 1 / 0 Inverted color if possible, black if not. If you want to have color cursor, then this function is not for you. Instead, you should hide the cursor with "SDL::Mouse::show_cursor(SDL_DISABLE)". Then in your main loop, when you draw graphics, draw a "SDL::Surface" at the location of the mouse cursor. Example: use SDL; use SDL::Video; use SDL::Mouse; use SDL::Cursor; SDL::init(SDL_INIT_VIDEO); SDL::Video::set_video_mode(640, 480, 16, SDL_SWSURFACE); my @data = ( 0b00000000, 0b00111100, 0b01111110, 0b01111110, 0b01111110, 0b01111110, 0b00111100, 0b00000000 ); my @mask = ( 0b00111100, 0b01111110, 0b11100111, 0b11000011, 0b11000011, 0b11100111, 0b01111110, 0b00111100 ); my $cursor = SDL::Cursor->new(@data, @mask, 8, 8, 0, 0); sleep(1); SDL::Mouse::set_cursor($cursor); sleep(5); The width of cursors work in groups of 8. If the width is above 8, twice the amount of elements in @data and @mask are required. If the width is above 16, three times are required, and so on. For example, if you wanted a 9 pixel crosshair you might do the following: my @data = ( 0b00001000,0b00000000, 0b00001000,0b00000000, 0b00001000,0b00000000, 0b00001000,0b00000000, 0b11111111,0b10000000, 0b00001000,0b00000000, 0b00001000,0b00000000, 0b00001000,0b00000000, 0b00001000,0b00000000, ); my @mask = @data; my $cursor = SDL::Cursor->new(@data, @mask, 9, 9, 4, 4); The hotspot is offset by 4 pixels because a crosshair clicks from the center instead of the top left. AUTHORS
See "AUTHORS" in SDL. SEE ALSO
perl SDL::Mouse perl v5.14.2 2012-05-28 pods::SDL::Cursor(3pm)
All times are GMT -4. The time now is 04:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy