Problem with MouseWarp on Raspberry pi in sdl 2.0.4 |
gepatto
|
Hi All,
I am currently helping the people from OpenFL to get OpenFL working on the Raspberry Pi 2. It uses SDL2 (2.0.4) to render via opengl es2 using the rapsberry pi video driver and libudev . We are getting pretty close, normal rendering works fine but I am having 2 problems with the (rpi)mouse cursor. I'll describe the first problem in this post: Whenever the mouse cursor crosses the right or bottom border off the screen (display) the cursor gets garbled. When it's completely outside the screen rect and you move the mouse back into the screenrect your are left with a white square as a cursor When you move it just 1 pixel over the right screen edge you can see something that looks like a scaling-effect in the x-direction. Can someone help me figure out what's going wrong? Thanks in advance How to reproduce? Here's a piece of sample code (based on the sdl_image_example) https://gist.github.com/gepatto/e1f7b925296d9c124cbd SDL2 was configured with these options: ../configure --host=armv7l-raspberry-linux-gnueabihf --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland --disable-video-x11 --disable-video-opengl I defined HAVE_LIBUDEV_H 1 in sdl_config.h and had to manually add the source and headers files for SDL_udev.h and SDL_udev.c , and an object build rule in the makefile |
|||||||||||
|