Jump to content

Archived

This topic is now archived and is closed to further replies.

pierre95870

Mouse coordinates

Recommended Posts

Hello,I would like to know how to record or display the mouse coordinates using LUA mouse library "mouse.getpos()" function.Thanks for helpRegardsPierre

Share this post


Link to post
Share on other sites

After a little research, I've found a solution.I send coordinates to display (MCP) in sequence ( one second between x and y).

function ENG2_Start ()  x, y = mouse.getpos()  DspShow("ENG2", x)  ipc.sleep(1000)  DspShow("ENG2", y)end

RegardsPierre

Share this post


Link to post
Share on other sites

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    18%
    $4,710.00 of $25,000.00 Donate Now
×
×
  • Create New...