[PATCH v2] dinput: Implement X/Y axis granularity and add test.