xpadder alternative for linux

Hello worldn,

i have been looking for an xpadder alternative for linux… there are a few like js2mouse but they look complicated, so i decided to code my own.

Here it is:

http://bazaar.launchpad.net/~krischan/yax/trunk/view/head:/yax.py

It is a small python program (50 lines) and needs xlib library for python, pygame and xdotool. Key bindings can be configured with keysym strings. Look at line 16 in the code.

Have fun

glsl bloom shader

Hi,
I’m currently working on making an computer game and I’ve searched the whole internet for an glsl bloom shader that works on ATI cards. Found nothing, so I had to make my own one. Here it is. Have fun.

uniform sampler2D bgl_RenderedTexture;

void main()
{
   vec4 sum = vec4(0);
   vec2 texcoord = vec2(gl_TexCoord[0]);
   int j;
   int i;

   for( i= -4 ;i < 4; i++)
   {
        for (j = -3; j < 3; j++)
        {
            sum += texture2D(bgl_RenderedTexture, texcoord + vec2(j, i)*0.004) * 0.25;
        }
   }
       if (texture2D(bgl_RenderedTexture, texcoord).r < 0.3)
    {
       gl_FragColor = sum*sum*0.012 + texture2D(bgl_RenderedTexture, texcoord);
    }
    else
    {
        if (texture2D(bgl_RenderedTexture, texcoord).r < 0.5)
        {
            gl_FragColor = sum*sum*0.009 + texture2D(bgl_RenderedTexture, texcoord);
        }
        else
        {
            gl_FragColor = sum*sum*0.0075 + texture2D(bgl_RenderedTexture, texcoord);
        }
    }
}