GetHitResultUnderCursor() doesn't seem to work (Gentoo Linux)

I solved it!

It turns out Device Drivers -> Input device support -> Mouse interface needs to be set to <M>, or [*] in my kernel configuration.