One way to implement such a wall is to output a spring force on the wheel, calculated as FY=K??YCURSOR, where K is a spring constant and ??YCURSOR is the distance of penetration of the cursor into the wall surface along the Y axis resulting from the sum of both wheel Y motion and mouse Y motion.