dMZX Forums: Allow use of key names for joystick bindings instead of raw keycodes -> Archived Requests -> Tracker

Jump to content

Report ID 752 Title Allow use of key names for joystick bindings instead of raw keycodes
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 #752: Allow use of key names for joystick bindings instead of raw keycodes

#1 User is offline  
Lachesis 

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

Posted 10 February 2019 - 10:50 PM

As it stands, to map a joystick input to a key, the internal key value (same as KEY_PRESSED) must be provided in the config file. This is irritating to look up for users and it might be nice to have a symbolic way of referring to every key.

Since key names like "0" and "9" would conflict with keycodes (and generic actions as currently implemented for this issue), these names likely need to be prefixed.

Possible examples:
joy1hat = key_up, key_down, key_left, key_right
joy1button1 = key_A
joy1button2 = key_S
joy1button3 = key_3
joy1button4 = key_KP5

"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 19 February 2019 - 06:40 PM

Updating status to: Approved
Updating severity to: 1 - Low

After a chat with Spectere we definitely agreed that these would be a good idea (as joystick actions still need to be bound to key constants). Action names are prefixed with "act_" now but the keys 0-9 would still be ambiguous with numeric codes, so "key_[name]" still seems like the best way to go. For simplicity these should be added after the joystick action branch is merged.
"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 11 June 2019 - 06:37 PM

Updating status to: Implemented
Issue fixed in: 2.92

Implemented in GIT ce07b092.
"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

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


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