Quantcast
Channel: Questions in topic: "dllimport"
Viewing all articles
Browse latest Browse all 160

DllImport safety

$
0
0
I've decided to grab mouse position from os ionstead of using Unity Input, to avoid mouse lag. What I'm using is: [DllImport("user32.dll")] public static extern bool GetCursorPos(out POINT lpPoint); I'm aware, it will make my code platform - dependent, it's not a problem. But I wonder, is it safe to use? Is there any possibility this approach will be bad for stability or performance of my game?

Viewing all articles
Browse latest Browse all 160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>