Changeset 357


Ignore:
Timestamp:
04/29/15 14:10:49 (10 years ago)
Author:
epyon
Message:
  • common - required msvc version bumped
  • io_event/sdl_input - native scan code added
  • core/allocator.hh - interface added (WIP)
  • core/string_ref.hh - full implementation of efficient string_ref with literal support
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/core/common.hh

    r347 r357  
    101101#endif
    102102
    103 #if NV_COMPILER == NV_MSVC && NV_COMP_VER < 1600
    104 #error "MSVC 2012+ required!"
     103#if NV_COMPILER == NV_MSVC && NV_COMP_VER < 1700
     104#error "MSVC 2013+ required!"
    105105#endif
    106106
     
    112112#error "clang 3.2+ required!"
    113113#endif
     114
     115// Feature incoming - remove and find when constexpr compiler is used
     116#define NV_CONSTEXPR
     117#define NV_CONSTEXPR_CONST const
    114118
    115119#if NV_COMPILER == NV_MSVC
     
    196200        {
    197201        protected:
    198                 noncopyable() = default;
     202                NV_CONSTEXPR noncopyable() = default;
    199203                ~noncopyable() = default;
    200204                noncopyable( const noncopyable& ) = delete;
  • trunk/nv/core/io_event.hh

    r338 r357  
    6262                /// True if pressed
    6363                bool pressed;
     64
     65                /// native scan code
     66                int native;
    6467        };
    6568
  • trunk/src/sdl/sdl_input.cc

    r338 r357  
    9898        default : break;
    9999        }
     100
     101        kevent.key.native = ke.keysym.scancode;
    100102
    101103        // If key was understood by nv, then it's valid, otherwise ignored
Note: See TracChangeset for help on using the changeset viewer.