Bläddra i källkod

Virtual input repeat works
Reduced repeat interval

Marko Pintera 12 år sedan
förälder
incheckning
52f680ec83

+ 1 - 1
BansheeEngine/Source/BsInputConfiguration.cpp

@@ -33,7 +33,7 @@ namespace BansheeEngine
 	}
 
 	InputConfiguration::InputConfiguration()
-		:mRepeatInterval(1000)
+		:mRepeatInterval(300)
 	{ }
 
 	void InputConfiguration::registerButton(const CM::String& name, CM::ButtonCode buttonCode, VButtonModifier modifiers, bool repeatable)

+ 2 - 3
BansheeEngine/Source/BsVirtualInput.cpp

@@ -114,9 +114,8 @@ namespace BansheeEngine
 					event.state = ButtonState::On;
 
 					mEvents.push(event);
-				}
-
-				hasEvents = true;
+					hasEvents = true;
+				}				
 			}
 		}
 	}

+ 0 - 13
VirtualInput.txt

@@ -1,13 +0,0 @@
-TODO:
-Extend CamelotOIS so it returns a timestamp of each event
- - INputHandlerOIS currently sents timestamp to 0. Make sure to update that.
- - I need to ensure that time value returned from OIS can be compared to time returned from gTime() (In BsVirtualInput::update)
-
-IMPORTANT: Was there an issue with raw input events vs. OS input events?
- - It might not be possible to use raw input events to manage the UI events?
-  - Or was the only reason lack of auto-repeat?
-
- - Change how I handle axes in CmInput
-   - Right now there is only single horizontal and single vertical axis, which makes little sense
-   - Plus a lot of axis functionality should probably be moved to VirtualInput
- - Register InputConfiguration containing default keys during Editor start-up