It definitely did. People are touching on important points, but as I see it, back in the N64 era, Nintendo started making some big mistakes that started it down the road it's on now, and the Wii was the nail in the coffin. First, they went with cartridges instead of disks for the N64. Then they went with those weird tiny disks on the Gamecube and didn't do online. This alienated a lot of 3rd party developers, which caused hardcore bases on other systems to really thrive while the hardcore base on Nintendo systems dwindled. When online really took off, Nintendo focused on a novel way to play, which was certainly a great thing, but at the expense of losing a good online system, which was a big hit to the hardcore base. So now, aside from the kiddie image, there was a worse image problem, the image that hardcore third party titles don't come to Nintendo, just minigame collections, that Nintendo didn't have good online, which is not really true anymore but the image is there to stay, and finally by choosing to focus so heavily on motion controls, they neglected games that worked better without them, and the Wii U didn't fix that, because the pro controller didn't come with the system. In fact, Wii U fixed none of those problems, except online, which it's still working on really. It's leaps and bounds ahead of the Wii, and not far behind the PS4 in terms of capabilities, but in terms of ease of development, it's harder, due first to archetiture and second to a general sense it gives developers that they can't just create an identical game for all systems but have to develop a unique feature for every Wii U port, which they don't want to do. The Wii was successful, but the success only worsened things, because it gave Nintendo no incentive to fix things. People hate on Iwata, but it was Hiroshi Yamauchi that set Nintendo on its anti-third party ways, in particular the online issues. He was a great businessman, but he set Nintendo up to fail in the long term. Iwata is less set in his ways, and is trying to undo some things Yamauchi did by fixing the online situation and patch things up with 3rd parties. He just has a shit ton of work ahead of him, since he took it way too easy in the Wii era. Further alienating third parties (at least those catering to a more hardcore audience), fumbling with online, not giving good support to non-motion controls, or even making the most of the motion controls for that matter (seriously, what besides Skyward Sword made full use of WiiMotionPlus?), the Wii hurt the Nintendo brand by thriving off a portion of the market that ended up leaving, giving Nintendo no incentive to better serve the hardcore.
Nintendo needs some restructuring, which it is doing. In particular they're hiring new people to fix the online situation, that's promising. They're claiming to want to make full use of the gamepad. At least it didn't take them until 5 years into the gen to figure that out this time like it did with the Wii. As for casuals, they're creating a new brand for that with the only thing the casuals ever really cared about: the health games, the education games, and the lifestyle apps. This will allow them to cater to casuals on their terms without muddying the Nintendo brand with those things, while advertising on each platform to maximize any possible crossover interests between the two audiences. This gen will be spent improving the online situation, while next gen will improve their overall infrastructure to make software development easier for 1st and 3rd party alike.