dMZX Forums: Add direct joypad access counters -> Archived Requests -> Tracker

Jump to content

Report ID 736 Title Add direct joypad access counters
Product Archived Requests Status Implemented (Severity 1 - Low)
Version 2.92 Fixed in 2.92

Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

Report ID #736: Add direct joypad access counters

#1 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,904
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 03 December 2018 - 05:45 AM

Split from here.

New counters should be added to MegaZeux to allow games to directly read joypad axes/buttons instead of relying on key mappings. Mainly, this would allow games to take advantage of analog joysticks to a greater degree than is possible with the current key mapping system.

/*

joy!active         (read-only)  Return 1 if the joypad is available, otherwise 0, or -1 if the joystick requested is invalid.
joy!.*             (read-only)  Action reading. The first parameter is the joypad number (1-16) and the second is an action name or an axis name.
                                Returns [0,1] for an action, [-32768,32767] for an axis, or -1 if the control requested is invalid.

*/


Because direct joypad reading could conflict with the built-in joypad key mapping, there should be a way to disable mappings altogether:
/*
joy_simulate_keys  (write-only) When set to 0, disables the default MZX joypad key mapping behavior except for the joystick menu.
*/


edit: updated to reflect actual counters implemented in this pull request.

This post has been edited by Lachesis: 13 July 2019 - 07:58 PM

"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository


Page 1 of 1  
  • Cannot start a new Issue
  • Closed Issue This issue is locked

Replies (1 - 3)

#2 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,904
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 21 March 2019 - 08:02 PM

Updating status to: Approved
Updating severity to: 1 - Low
Updating version to: 2.92
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#3 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,904
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 13 July 2019 - 07:58 PM

Updating status to: Implemented
Issue fixed in: 2.92

Implemented as part of GIT e55e0108.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#4 User is offline  
Terryn 

  • ******
  • Group: DigiStaff
  • Posts: 2,961
  • Joined: 12-October 00
  • Gender:Male

Posted 23 July 2019 - 12:30 AM

Moving to: Archived Requests


Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

0 User(s) are reading this issue
0 Guests and 0 Anonymous Users


Powered by IP.Tracker 1.3.2 © 2024  IPS, Inc.