Homebrew app Can't compile homebrew (hidKeysDown)

ThatBenderGuy

Well-Known Member
OP
Member
Joined
Dec 16, 2013
Messages
150
Trophies
0
Age
31
XP
348
Country
United States
I have recently installed Ubuntu and was setting up my development environment for DevKitPro. My project is to update a dead homebrew for personal use. I have installed all the switch libraries using dkp-pacman, and when I run make in the project's directory I get a bunch of errors but they all stem from the error:
source/main.c:501:33: error: 'CONTROLLER_P1_AUTO' undeclared (first use in this function) u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO);
I have not programmed in C much but I assume due to changes in libraries since this the last time the homebrew was updated that CONTROLLER_P1_AUTO is deprecated now but I have no clue how to figure out what replaced it. The project does use SDL2 but it's not used in the main.c file (which is where this compile error is occuring). Any suggestions or ideas? I'm new to switch homebrew development but I really wanted to update this app because it's useful.

EDIT:
I also noticed I get these compile errors
warning: implicit declaration of function 'hidScanInput' [-Wimplicit-function-declaration]
warning: implicit declaration of function 'hidKeysDown' [-Wimplicit-function-declaration]
 

rash1613

Member
Newcomer
Joined
Apr 16, 2022
Messages
11
Trophies
0
Age
24
Location
New York
XP
114
Country
United States
I have recently installed Ubuntu and was setting up my development environment for DevKitPro. My project is to update a dead homebrew for personal use. I have installed all the switch libraries using dkp-pacman, and when I run make in the project's directory I get a bunch of errors but they all stem from the error:

I have not programmed in C much but I assume due to changes in libraries since this the last time the homebrew was updated that CONTROLLER_P1_AUTO is deprecated now but I have no clue how to figure out what replaced it. The project does use SDL2 but it's not used in the main.c file (which is where this compile error is occuring). Any suggestions or ideas? I'm new to switch homebrew development but I really wanted to update this app because it's useful.

EDIT:
I also noticed I get these compile errors
take a look at this example to see how button presses are read now
https://github.com/switchbrew/switch-examples/blob/master/hid/read-controls/source/main.c
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • NinStar @ NinStar:
    nes remix 1 had the bad one, nes remix 2 had the good one
  • SylverReZ @ SylverReZ:
    @genistopitauniverfrocrami, What drugs is this dude on?
    +1
  • NinStar @ NinStar:
    CRAZY HAMBURGER
  • The Real Jdbye @ The Real Jdbye:
    @NinStar both nes remix 1 and 2 had some stinkers in there
    +1
  • The Real Jdbye @ The Real Jdbye:
    but at least 2 doesn't have sports games
  • The Real Jdbye @ The Real Jdbye:
    loved nes remix, but hated having to play Baseball, Tennis and Golf in order to progress
    +1
  • The Real Jdbye @ The Real Jdbye:
    or fucking Clu Clu Land for that matter
  • Psionic Roshambo @ Psionic Roshambo:
    Not a big fan of NES kid Icarus either... I know it was popular but I didn't care for it.
  • Psionic Roshambo @ Psionic Roshambo:
    Yesterday I learned my BD Burner drive can burn CD's at 56X lol
  • cearp @ cearp:
    What stuff were you burning?
    I used to burn tons of dvds (data files) many years ago, but haven't burnt a disk in ages.
  • Psionic Roshambo @ Psionic Roshambo:
    My car actually reads MP3 CD's lol
  • Psionic Roshambo @ Psionic Roshambo:
    So mix CDs for myselt :)
  • Psionic Roshambo @ Psionic Roshambo:
    Pantera, Metallica, Hollywood Undead, Five Finger Death Punch, some others lol
  • Psionic Roshambo @ Psionic Roshambo:
    I can put like 90 songs on a CD lol
  • The Real Jdbye @ The Real Jdbye:
    if only it could read dvds then you would just need 1 disc
    +1
  • BakerMan @ BakerMan:
    i tell ya what, i could go for a fuckin gyro right about now
    +1
  • cearp @ cearp:
    I hope your brother is doing ok Mr BakerMan
    +1
  • cearp @ cearp:
    and Psi - I had a cd player / radio that played mp3 cds once, very cool
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    BakerMan yeah me too.... maybe that's gonna be dinner for me there is this place near me I have been dying to try and they have them lol
  • K3Nv2 @ K3Nv2:
    I miss usb mp3 players they were shit but at the time a go to
  • Psionic Roshambo @ Psionic Roshambo:
    @The Real Jdbye, I thought about that and I have blank DVD's and Blurays but honestly after like 90 songs I just listen to it a couple of hundred times toss it out and burn something else or have like 2-3 CD's. Florida here the heat in the car tends to ruin the CD's after like a few months even commercial pressed ones don't last too long.
  • The Real Jdbye @ The Real Jdbye:
    my music collection is just too big, i require variety
    The Real Jdbye @ The Real Jdbye: my music collection is just too big, i require variety