Codeusa / Borderless-Gaming

Play your favorite games in a borderless window; no more time consuming alt-tabs.
GNU General Public License v2.0
5.58k stars 478 forks source link

Cursor Issue #62

Closed Nhawks1717 closed 9 years ago

Nhawks1717 commented 10 years ago

This is probably just per game but I am using this on Civilization 5 and I have noticed that when this is applied the cursor that is provided in game by Civilization 5 is not positioned correctly to where the actual selection is taking place on the UI. Its not a bid deal since its only offset by a little but it is a big enough problem to where it is effecting clicking on certain things. Like I said this is probably just an issue with Civ 5 because of their curosr but I'm not sure. I don't really have any other games to test this on that don't already have their own version of Borderless Window.

ghost commented 10 years ago

Hi, I'm having this same issue in Lord of the Rings Online, the offset is maybe a 1 cm.

ShanKanis commented 10 years ago

Same issue here in few visual novels. It's kind of pain :P

gabeseltzer commented 10 years ago

I have the same issue with Neverwinter Nights 2, but not any other game (so far) that I've used this with

Chromana commented 10 years ago

To fix the Civ V issue, as noted here http://pcgamingwiki.com/wiki/Civilization_V#Borderless_fullscreen_windowed :

  1. Launch Game with Borderless Gaming.
  2. Go to settings and change to some other resolution and apply.
  3. Change back to desired resolution setting and apply.

Similar steps may work in other games. You could check the wiki pages of other games too.

Nhawks1717 commented 10 years ago

ah! Perfect, thanks!!

Sent from my iPhone

On Jul 7, 2014, at 10:26 PM, Alex notifications@github.com wrote:

To fix the Civ V issue, as noted here http://pcgamingwiki.com/wiki/Civilization_V#Borderless_fullscreen_windowed :

  1. Launch Game with Borderless Gaming.
  2. Go to settings and change to some other resolution and apply.
  3. Change back to desired resolution setting and apply.

— Reply to this email directly or view it on GitHub https://github.com/Codeusa/Borderless-Gaming/issues/62#issuecomment-48265338 .

ZwaanME commented 9 years ago

I have a similar problem using Borderless Gaming with games like Empress of the Deep (hidden object game) that run in a low resolution (800x600 or 1024x768). When I run games like these without a border they no longer scale the position of the mouse cursor which makes it almost impossible to play. The middle of my screen is interpreted as the lower right corner making it hard to click buttons. Is there any way to correct this? I can't change the resolution as suggested because these games only run in one resolution setting.

psouza4 commented 9 years ago

Unfortunately, some games are incompatible as they don't check their resolution or use scaling techniques to understand screen coordinate translations. So when the window size is changed, the mouse position offset is wrong. There's nothing Borderless Gaming or other window-resizing applications can do to fix this, I'm afraid. You can run it borderless without resizing the window if you just want a clean feel to the game, but it's just an oversight in how the game translates mouse inputs to on-screen game elements by not accounting for smooth resolution sizing.

ZwaanME commented 9 years ago

Dear Peter,

Thank you for your swift reply. I thought it would be something like this but I'm glad I didn't miss an obvious or advanced feature of the program. I have managed to get the software to work with a variety of games and when it works it's great to be able to do something on my second monitor without losing focus.


Kind regards,

MARK ZWAAN

Peter Souza schreef op 2015-07-25 18:22:

Unfortunately, some games are incompatible as they don't check their resolution or use scaling techniques to understand screen coordinate translations. So when the window size is changed, the mouse position offset is wrong. There's nothing Borderless Gaming or other window-resizing applications can do to fix this, I'm afraid. You can run it borderless without resizing the window if you just want a clean feel to the game, but it's just an oversight in how the game translates mouse inputs to on-screen game elements by not accounting for smooth resolution sizing.

Reply to this email directly or view it on GitHub [1].

*

Links:

[1] https://github.com/Codeusa/Borderless-Gaming/issues/62#issuecomment-124859049

psouza4 commented 9 years ago

Glad that works for you!

Nucleoprotein commented 8 years ago

Hello,

Sorry for writing in this old issue, but you wrong about:

There's nothing Borderless Gaming or other window-resizing applications can do to fix this, I'm afraid.

You can fix this by injecting custom DLL into game process and hook CreateWindowEx and SetWindowLong. This is aggressive method, but I have working d3d9.dll wrapper for Civilization 5 (also work for DX11 because executable loads d3d9.dll too) that overcomes cursor offset bug. I think something similar is doing GeDoSaTo but it have more advanced injection schema.

My code is here: http://www24.zippyshare.com/v/sW2NUY9l/file.html I need to create github project for it someday ...