c# - Implement zoom functionality like touchpad -


i'm working on app in i'm going map mouse functions onto keyboard keys. example, if user presses 'l', app simulate left mouse click. have mapped clicks , scroll using:

[dllimport("user32.dll", charset = charset.auto, callingconvention = callingconvention.stdcall)] public static extern void mouse_event(uint dwflags, uint dx, uint dy, uint cbuttons, uint dwextrainfo); 

now want implement zoom in , out functionality. in laptops, using pinch on touchpad, can zoom in , out. how can achieve that?

there nice function in windows 8+ - injecttouchinput. allows inject touch events or mouse events parameters want. packed .net wrapper.

this question contains working c++ sample code pinch, can adapt needs. simulate zoom touchscreen.

this 1 way. other way may sending wm_mousewheel ctrl key modifier target hwnd, simulating mouse wheel zoom.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -