# Question about cross platform code

**URL:** <https://forum.inductiveautomation.com/t/question-about-cross-platform-code/6371>\
**Category:** Ignition\
**Created:** [May 2, 2013, 3:58pm UTC](https://forum.inductiveautomation.com/t/question-about-cross-platform-code/6371 "2013-05-02T15:58:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffkrol](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jeffkrol/32/3339_2.png) [@jeffkrol](https://forum.inductiveautomation.com/u/jeffkrol)\
**Post date:** [May 2, 2013, 3:58pm UTC](https://forum.inductiveautomation.com/t/question-about-cross-platform-code/6371/1 "2013-05-02T15:58:33Z")

</div>

Hello, I'm new to using Ignition and I have been reading these forums to address specific questions I've been having. I came across something I wasn't sure about in this post:

[http://www.inductiveautomation.com/forum/viewtopic.php?f=70&t=9761&p=34091](http://www.inductiveautomation.com/forum/viewtopic.php?f=70&t=9761&p=34091)

Namely, I'm not sure about this line:

> [@](#):
>
> 2. In both the mousePressed and mouseReleased events of the label (required so it will run cross-platform), put the following code:

Can anyone explain why you have to use two different events to make your project be cross-platform? Also, what platforms are we talking about specifically? Linux, OS X and Windows? Is there a guideline somewhere out there that gives rules to follow regarding cross-compatibility?

Thanks.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 2, 2013, 4:04pm UTC](https://forum.inductiveautomation.com/t/question-about-cross-platform-code/6371/2 "2013-05-02T16:04:17Z")

</div>

There’s not too many places where you need to be concerned about this, but as it happens on Windows ‘mouseClicked’ events are generated on the button press, whereas on OS X they are generated on the release.

That post is somewhat inaccurate it would seem.
