User Tag List

Results 1 to 6 of 6

Thread: Detect mouse click outside play area?

  1. #1
    Clicker

    Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Detect mouse click outside play area?

    Shortly: I develop in 720p and use ultimate fullscreen to keep native size. It adds big black borders outside the play area.
    I have few events I activate with mouse, so when player plays in native resolution and clicks with mouse, but the mouse is outside the play area on black borders it won't take the action.

    I found extension called "Key Object" however it's action "On key pressed" does not work, neither does "On key released". Only "Is key down?" works. And that is not exactly what I'm looking for.

    So is there a way or some extension that does the trick? Something that antivirus softwares won't hate?

    - Jesse

  2. #2
    Clicker

    Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'm not using "mouse controlled" movement cause it's buggy. If that is what you meant?
    I'm using ymouse to calculate some angles for player's arms and head. Odd thing is that I can start aiming with right mouse button even when it is out of play area.

  3. #3
    Clicker

    Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Huh gotta take a look, big thanks for example!

    I'll report back later!

    - Jesse

  4. #4
    Clicker

    Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Haha dude! It actually works!
    Thou I changed Ultimate Fullscreen to add borders (type 1) - and had to change start of frame to always. But it does the trick!

    Now, restricting mouse like this should I be afraid of antivirus softwares? I heard that some extensions.. was it mouse extension...? Anyway, are not really liked among some bad antivirus softwares.

    But again, big thanks! I'm sure this will be useful for many users.

    - Jesse

    EDIT: Small edit here, I noticed when I alt+tab to desktop, it still restricts the mouse which is a bit scary. I'm a bit afraid some antivirus software will mark this as a virus which would be horrible when sending out demos. Anyway, I might be wrong here!
    Also is it possible to create a condition that checks if windows is active? Was thinking I could restrict the mouse only when window is active instead of always.

  5. #5
    Clicker

    Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Sorry to post again. I used "Window focus object" and now mouse works in desktop. Anyway, I added the code and tested my frames. Everything works. Then I quit the application and went to photoshop to update certain graphics. I noticed when I change opacity of one picture it changed the opacity from other window as well.

    I'm not sure but it feels like "Window focus object" or "Power system object" are still running somewhere background messing stuff up. O_O

  6. #6
    Clicker

    Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I don't know if it was caused by extensions because I restarted my computer and same thing occured in Photoshop. I think something else was causing it!

    I'll report back if I find something weird, but been playing around with the code and everything seems smooth now, thanks again!

    - Jesse

Similar Threads

  1. Wrapping around play area
    By MangoMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th December 2011, 02:46 AM
  2. detect a mouse click when window is not focused
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th August 2011, 07:29 PM
  3. If Object is in the Play Area....
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 18th September 2010, 11:59 PM
  4. Collisions only in play area.
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th September 2009, 09:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •