FIX : keyboard bind issue, can not be setting of analog key.

ADD: set the dead zone to the axis of the DirectInput.
This commit is contained in:
nachume committed 2013-05-19 18:12:22 +09:00
1 parent 1947718c43
commit d24e5be256
5 files changed
+60 -29

No files matched your search

+2 -1
View File
@@ -71,7 +71,8 @@ int KeyboardDevice::UpdateState(InputState &input_state) {
break;
}
}
// keyboard device
input_state.pad_lstick_x += analogX;
input_state.pad_lstick_y += analogY;
return 0;