HDK Mouse And Keys

by Hiro the Dragon King
HDK Mouse And Keys
Real-time mouse updates as well as left and right macros for the Shift, Ctrl, and Alt keys.
ID:624910
 
Not a bug
This is unfortunately a computer specific bug relating to Internet Explorer, JavaScript and BYOND, and not related to this library.
BYOND Version:Unknown
Operating System:Unknown
Web Browser:Irrelevant
Applies to:HDK Mouse And Keys
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
[Archival Purposes]

Kaiochao wrote:
[Jun 1 2011, 11:50 am (Edited on Jun 1 2011, 12:04 pm)] I've been experiencing strange issues with the mouse coordinate retrieval.

client.mapx and client.mapy are somehow related with the mob's position on the map, which screws up my mouse aiming. When the mob is at turf 1,1 the bottom left corner of his tile is pixel 1,1. When the mob is at turf 1,55 the bottom left corner of his tile is pixel 1,55. The bottom left corner should always be 1,1 no matter where the mob is on the map, right?

edit: Also, the mouse only updates position when it moves; when the player moves without moving the mouse, the coordinates do not change.

Hiro the Dragon King wrote:
[Jun 1 2011, 8:20 pm] client.mapx/y are the coordinates of the tile on the map that the mouse is over. If you're looking for the constants, client.mousex/y refer to the mouse's position over the client's screen.
Kaiochao wrote:
[Jul 18 2011, 1:31 am (Edited on Jul 18 2011, 1:39 am)] Something is wrong with the mouse detection. I think it was a BYOND update, because all of a sudden, this library and everything I used it for just froze as soon as it started up. The mouse flickered between normal and waiting (with the blue circle in Windows 7).
Darn you, BYOND!

Edit: It could also be my computer (as well as another on Win7 and another on WinXP...), because downgrading to 470.1075 doesn't seem to fix it.
Kaiochao wrote:
[Jul 19 2011, 12:50 am] Bah, it is my computer. I have no clue what is wrong, but grabbing mouse position with JavaScript in any game (Hazordhu's tooltips, shootah's mouse aiming, this library's demo) is broken.
Bravo1 wrote:
[Jun 3 2011, 3:23 pm] It seems to be a cosstalk issue with Java and DreamSeeker. It's not a big issue, but I agree, it's annoying as fuck.
Kaiochao wrote:
[Jul 19 2011, 5:44 pm] Is there anything I can do to fix that? JavaScript is the only way I know how to track the mouse.
Hiro the Dragon King resolved issue (Not a bug) with message:
This is unfortunately a computer specific bug relating to Internet Explorer, JavaScript and BYOND, and not related to this library.
There is a fix to this for users that have the issue though!

The issue lies in the interaction between the Java installer and internet explorer.

In order to fix the issue, use another browser(Firefox, chrome, Opera, Safari, etc.) and install java from there. This should clear up the issue.
Really now, that's great news!