Jump to content

OnKeyDown sensistivity


Recommended Posts

I'm running a mod called Enhanced Hotkeys 2.3.1 (last updated 2011), and it's fantastic except for two things:

 

* When my framerate is suppressed (lots of animated actors milling around, or whatever), it doesn't pick up the keystrokes. I sometimes have to do, e.g., LeftAlt + Numpad5 anywhere from ten to twenty times in a row to get it to recognize the hotkey and cast the spell I have assigned to it. Keeps getting me killed. When there's no lag problem, it usually recognizes the keystrokes immediately.

* When I'm in menu mode, the sensitivity is "ultimate". I have an in-menu hotkey set to "O" to do something inventory-related (via a different mod), but EHk always interprets it instantly as the player wanting to do something with EHk, so it pops up it's "assign stuff to key O" menu, which has to be manually dismissed (while the other mod also does its actually assigned hotkey thing).

 

I'm wondeing if it's practical somehow to tweak this mod to behave better, most especially for the first problem (I think the second might be addressable in its INI by telling it to require a modifier key; I'm not sure, but will check.) Update: I checked, and there's no config for that. :-(

 

I know precious little about Oblivion code yet (though I've done some minor Morrowind modding), and it seemed wise to ask those with experience before poking around at this stuff for hours with insufficient clue. Heh.

Edited by Darklocq
Link to comment
Share on other sites

From my experience, its an inherent flaw in the command itself.

 

the mod I've been working on for a while also uses the OnKeyDown command.

 

if mousewheel moved up

speed up

if mousewheel down

slow down

 

 

 

 

I've tried everything I can to get my mod as responsive as possible, but for whatever

reason, that command just don't seem to trigger like an in game control like Jump.

 

Sometimes I have to move the mousewheel up several times before the game

decides to go to my next speed setting.

 

Even with a fresh installed game with just the basics (unofficial patches, OBSE, and Menuque.)

its still not responsive.

IT acts like it don't see the command at all a lot of times.

 

to get my mod as responsive as possible.

I created a quest just to watch for the mouseup, mousedown, and one more key used to toggle the mousewheel from

speed control mode back to zoom in/zoom out on your character

 

I've 'asked' the quest to run really fast. (asking is one thing.... getting it is another haha)

 

if controlling speed then

if mouseup

go run this other script over here. (calls for a function that has code to advance to next speed setpoint)

if mousedown

go run this other script over here. (calls for a function that has code to drop down to a lower speed setpoint)

if toggle key has been pressed

stop controlling speed

else

if toggle key has been pressed

start controlling speed

endif

 

Even with this little of code running in a quest thats set super fast.... it still misses the

mouseup and mousedown actions.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...