View Single Post
Old December 22nd, 2006   #61 (permalink)
Rebel_X
Ƹ̵̡Ӝ̵̨̄Ʒ 龍我雷 Ƹ̵̡Ӝ̵̨̄Ʒ
 
Rebel_X's Avatar
 
Join Date: Sep 2002
Location: Oak Lawn, IL
Posts: 1,202
Technical Part (Danger if you hate math skip this post! )
============================================

RPGW1ZaRD from technical view, PadWinKeb was Wrapping every 254 pixels to 0
it means, if your screen width was 640, and your mouse x-axis was 200, and you
go to the right 60 pixels, that means the new analog x-axis is 6 ( 260 - 254 )
it'll go to the left, so that's why the Character in FF12 goes in wrong different directions, in
different mouse locations.

I managed to correct this by this formula to scale Mouse (Screen) coordinates
i.e (640x480) to Analog coordinates (x and y <= 255 and >= 0) (255x255)

AnalogX = (Mouse.X / ScreenWidth) * 255
AnalogY = (Mouse.Y / ScreenHeight) * 255

I don't know why PadWinKeyb authors didn't do that, it was very trivial & basic.

the Reks in FF12, if you want him to run the right, Analog must be X > 64+(128 origin)

So bottom line, Sensitivity is good for Most games, cause Keyboard uses
the highest sensitivity, so mouse will be good for accurate Analog coords
And I don't think, it would be appropriate to add harsh mouse sensitivity
(although its possible)

Besides, you said, it's a bonus feature, this plugin focus on Keyboard.
Sorry if I was bragging, But I was showing you what's going on.

I hope thc is glad for mouse support tho
__________________

Kuroshіtsuji (Sebastian: "I am one 'hell' of a butler")

Last edited by Rebel_X; January 6th, 2007 at 01:24.. Reason: technical stuff ;)
Rebel_X is offline   Reply With Quote

Advertisement [Remove Advertisement]