This was segfaulting (I think?) because this method actually takes doubles instead of ints:

http://www.glfw.org/docs/latest/group__input.html#ga01d37b6c40133676b9cea60ca1d7c0cc